00001 <?php 00002 00003 /* 00004 * This file is part of the PEIP package. 00005 * (c) 2010 Timo Michna <timomichna/yahoo.de> 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00021 class PEIP_Content_Class_Selector 00022 implements PEIP_INF_Message_Selector { 00023 00024 protected 00025 $className; 00026 00027 00033 public function __construct($className){ 00034 $this->className = $className; 00035 } 00036 00037 00043 public function acceptMessage(PEIP_INF_Message $message){ 00044 return $message->getContent() instanceof $className; 00045 } 00046 00047 } 00048