Beispiel #1
0
 public function __call($method, $args)
 {
     if (substr($method, 0, strlen(self::MAPPER)) == self::MAPPER) {
         $real = substr($method, strlen(self::MAPPER));
         $member = $this->engine->naming()->real2member($real);
         return call_user_func_array(array($this->engine, 'mapper'), array($member));
     }
 }
Beispiel #2
0
 public function __construct(SFM_Engine $engine, SFM_Factory $factory)
 {
     $this->engine = $engine;
     $this->factory = $factory;
     $this->naming = $engine->naming();
 }