function attribute($attr)
 {
     if ($attr == 'collaboration_handlers') {
         return $this->collaborationHandlers();
     } else {
         if ($attr == 'collaboration_selections') {
             $selections = $this->collaborationSelections();
             return $selections;
         }
     }
     return eZNotificationEventHandler::attribute($attr);
 }
Esempio n. 2
0
 function attribute($attr)
 {
     if ($attr == 'subscribed_nodes') {
         $user = eZUser::currentUser();
         return $this->subscribedNodes($user);
     } else {
         if ($attr == 'rules') {
             $user = eZUser::currentUser();
             return $this->rules($user);
         }
     }
     return eZNotificationEventHandler::attribute($attr);
 }
 /**
  * @param string $attr
  *
  * @return mixed
  */
 function attribute($attr)
 {
     if ($attr == 'subscribed_tags') {
         $user = eZUser::currentUser();
         return $this->subscribedTags($user);
     } else {
         if ($attr == 'rules') {
             $user = eZUser::currentUser();
             return $this->rules($user);
         } else {
             if ($attr == 'available_tags') {
                 return ITNewsletterPost::notificationAvailableTags();
             }
         }
     }
     return eZNotificationEventHandler::attribute($attr);
 }
 function attribute($attr)
 {
     if ($attr == 'settings') {
         return $this->settings(eZUser::currentUser());
     } else {
         if ($attr == 'all_week_days') {
             return eZLocale::instance()->attribute('weekday_name_list');
         } else {
             if ($attr == 'all_month_days') {
                 return range(1, 31);
             } else {
                 if ($attr == 'available_hours') {
                     return array('0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00');
                 }
             }
         }
     }
     return eZNotificationEventHandler::attribute($attr);
 }