00001 <?php 00026 class NewsDownloadFilter extends BaseFilter implements Filterable { 00032 protected function __construct () { 00033 // Call parent constructor 00034 parent::__construct(__CLASS__); 00035 } 00036 00042 public final static function createNewsDownloadFilter () { 00043 // Get a new instance 00044 $filterInstance = new NewsDownloadFilter(); 00045 00046 // Return the instance 00047 return $filterInstance; 00048 } 00049 00057 public function execute (Requestable $requestInstance, Responseable $responseInstance) { 00058 // Get a news instance 00059 $newsInstance = WebNewsFactory::createFactoryByRequest($requestInstance); 00060 00061 // Store the news instance in registry 00062 Registry::getRegistry()->addInstance('news', $newsInstance); 00063 } 00064 } 00065 00066 // [EOF] 00067 ?>
1.5.6