Exemplo n.º 1
0
 /**
  *
  * @param type $name
  * @param type $function 
  * @param ... args the names of the arguments the javascript function should take
  */
 public function __construct($name, $function)
 {
     parent::__construct($name);
     Args::isString($function, 'function');
     $this->function = $function;
     $args = func_get_args();
     for ($i = 2; $i < count($args); $i++) {
         array_push($this->args, $args[$i]);
     }
 }
Exemplo n.º 2
0
 public function __construct($name, $value)
 {
     parent::__construct($name, $value);
     Args::isString($value, 'value');
     $this->value = $value;
 }