Ejemplo n.º 1
0
 public function setAct(/* .... */) {
     $lego = lego_abstract::current();
     $params = array($lego->getName());
     $params = array_merge($params, func_get_args());
     return call_user_func_array(
             array($this, "set"),
             $params
     );
 }
Ejemplo n.º 2
0
 /**
  * Коннструктор
  * @param string $name
  * Имя лего
  * @return none
  */
 public function __construct($name = false)
 {
     parent::__construct();
     self::$all_legos[] = $this;
     $this->lego_runner = lego_abstract::current();
     self::$runned_legos[] = $this;
     if (!$name) {
         $name = get_class($this);
     }
     $this->name = $name;
     $this->dir = $this->getDir();
     $this->init();
 }