示例#1
0
文件: HTML.php 项目: xiphe/html
 /**
  * This is where the magic happens.
  *
  * Catch all method calls to unknown methods and pass them
  * to the Generator.
  * 
  * @param string $name      the called method
  * @param array  $arguments passed arguments
  * 
  * @return mixed             Xiphe\HTML or whatever the generator returns.
  */
 public function __call($name, $arguments)
 {
     Core\Config::setHTMLInstance($this);
     $r = Core\Generator::call($name, $arguments);
     if (!empty($r)) {
         return $r;
     }
     return $this;
 }