コード例 #1
0
 /**
  * Is the message directed at this filter instance?
  * 
  * @param IPipeMessage $message
  * @return bool
  */
 protected function isTarget($message)
 {
     return $message->getName() == $this->name;
 }
コード例 #2
0
 /**
  * Sort the Messages by priority.
  */
 protected function sortMessagesByPriority(IPipeMessage $msgA, IPipeMessage $msgB)
 {
     if ($msgA->getPriority() == $msgB->getPriority()) {
         return 0;
     }
     return $msgA->getPriority() < $msgB->getPriority() ? -1 : 1;
 }