PEIP_Fly_Adapter.php

Go to the documentation of this file.
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 class PEIP_Fly_Adapter {
00023 
00024     
00030     public function __construct(ArrayAccess $methodMap){        
00031         $this->methodMap = $methodMap;  
00032     }
00033     
00034     
00040     public function setSubject($subject){
00041         $this->subject = $subject;
00042         return $this;
00043     }
00044     
00045     
00052     public function __call($method, $arguments){
00053         if(array_key_exists($method, $this->methodMap)){
00054             return call_user_func_array(array($this->subject, $this->methodMap[$method]), $arguments);
00055         }
00056     }
00057 }
00058 
00059 
00060 

Generated on Mon Apr 12 11:39:00 2010 for PEIP by  doxygen 1.5.1