Exemplo n.º 1
0
 public function getText(KConfig $config)
 {
     if ($config->activity->name == 'client') {
         $config->append(array('subject' => '%type% %resource% %name%'));
     }
     return parent::getText($config);
 }
Exemplo n.º 2
0
 public function getText(KConfig $config)
 {
     if ($config->activity->action == 'contact') {
         $config->append(array('actor' => '%user% %name%', 'subject' => '%resource%'));
     } else {
         $config->append(array('subject' => '%resource% %name%'));
     }
     return parent::getText($config);
 }
Exemplo n.º 3
0
 public function getText(KConfig $config)
 {
     $activity = $config->activity;
     $config->append(array('subject' => '%resource% %name%'));
     if ($activity->name == 'file' && ($metadata = $activity->metadata)) {
         // Add target info.
         $config->append(array('target' => '%folder%'));
     }
     return parent::getText($config);
 }
Exemplo n.º 4
0
 public function getText(KConfig $config)
 {
     $subject = array();
     if ($config->activity->metadata) {
         $subject[] = '%type%';
     }
     $subject[] = '%resource% %title%';
     $config->append(array('subject' => implode(' ', $subject)));
     return parent::getText($config);
 }
Exemplo n.º 5
0
 public function getText(KConfig $config)
 {
     $activity = $config->activity;
     $subject = array('%name%', '%resource%');
     if ($activity->metadata->version) {
         if ($activity->action == 'edit') {
             // Version should be part of the target.
             $config->append(array('target' => '%version%'));
         } else {
             // Version should be part of the subject.
             $subject[] = '%version%';
         }
     }
     $config->append(array('subject' => implode(' ', $subject)));
     return parent::getText($config);
 }
Exemplo n.º 6
0
 public function getText(KConfig $config)
 {
     $config->append(array('subject' => '%type% %resource% %title%'));
     return parent::getText($config);
 }