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 00022 abstract class PEIP_ABS_Command 00023 extends PEIP_Parameter_Holder 00024 implements 00025 PEIP_INF_Command, 00026 PEIP_INF_Parameter_Holder { 00027 00028 protected $params; 00029 00030 protected $callable; 00031 00032 00033 00038 public function __invoke(){ 00039 return $this->execute(); 00040 } 00041 00042 00047 public function execute(){ 00048 return call_user_func_array($this->callable, $this->getParameters()); 00049 } 00050 00051 }