コード例 #1
0
 /**
  * @param kGenericEventConsumer $consumer
  * @return bool true if should continue to the next consumer
  */
 protected function consumeGeneric(kGenericEventConsumer $consumer)
 {
     if (!$consumer->shouldConsumeEvent($this)) {
         return true;
     }
     KalturaLog::debug(get_class($this) . ' event consumed by ' . get_class($consumer));
     return $consumer->consumeEvent($this);
 }
コード例 #2
0
ファイル: KalturaEvent.php プロジェクト: DBezemer/server
 /**
  * @param kGenericEventConsumer $consumer
  * @return bool true if should continue to the next consumer
  */
 protected function consumeGeneric(kGenericEventConsumer $consumer)
 {
     if (!$consumer->shouldConsumeEvent($this)) {
         return true;
     }
     KalturaLog::debug('consumer [' . get_class($consumer) . '] started handling [' . get_class($this) . ']');
     $result = $consumer->consumeEvent($this);
     KalturaLog::debug('consumer [' . get_class($consumer) . '] finished handling [' . get_class($this) . ']');
     return $result;
 }