Ejemplo n.º 1
0
 public function afterSaveEvent($event)
 {
     $event->data['variables'] = array_merge((array) $event->data['variables'], ['%type%' => $event->sender->typeOf()->name, '%requestFor%' => $event->sender->requestFor()->name, '%urgency%' => $event->sender->getUrgency(), '%title%' => $event->sender->title]);
     parent::afterSaveEvent($event);
 }
Ejemplo n.º 2
0
 public static function has()
 {
     $has = ['author' => null, 'editor' => null, 'hidden' => null, 'deleted' => null];
     return array_merge(parent::has(), $has);
 }