loadProse() публичный Метод

public loadProse ( StoryTeller $st, string $className, $constructorArgs )
$st StoryTeller
$className string
Пример #1
0
 /**
  *
  * @param  string $methodName
  * @param  array  $methodArgs
  * @return mixed
  */
 public function __call($methodName, $methodArgs)
 {
     // what class do we want?
     $className = $this->proseLoader->determineProseClassFor($methodName);
     // use the Prose Loader to create the object to call
     $obj = $this->proseLoader->loadProse($this, $className, $methodArgs);
     // did we find something?
     if (!is_object($obj)) {
         // alas, no
         throw new E5xx_NoMatchingActions($methodName);
     }
     // all done
     return $obj;
 }