You are here

public function Notifications_Subscription::__set in Notifications 6.4

Magic method, set protected properties

Warning: This also runs for unset properties

Overrides Messaging_Object::__set

1 call to Notifications_Subscription::__set()
Notifications_Subscription::__construct in includes/notifications_subscription.class.inc
Class constructor

File

includes/notifications_subscription.class.inc, line 971
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Message destination class

Code

public function __set($name, $value) {
  switch ($name) {
    case 'fields':
      $this
        ->set_fields($this
        ->normalize_fields($value));
      break;
    case 'destination':
      if (is_object($value)) {
        $this
          ->set_destination($value);
      }
      else {
        $this->destination = $value;
      }
      break;
    default:
      parent::__set($name, $value);
  }
}