コード例 #1
0
ファイル: reflection.php プロジェクト: scottmac/hiphop-dev
 public function newInstanceArgs($args)
 {
     return hphp_create_object($this->info['name'], $args);
 }
コード例 #2
0
 /**
  * ( excerpt from
  * http://php.net/manual/en/reflectionclass.newinstanceargs.php )
  *
  * Creates a new cass instance of the class, the given arguments are
  * passed to the class constructor. WarningThis function is currently not
  * documented; only its argument list is available.
  *
  * @args       mixed   The parameters to be passed to the class constructor
  *                     as an array.
  *
  * @return     mixed   Returns a new instance of the class.
  */
 public function newInstanceArgs($args)
 {
     return hphp_create_object($this->name, array_values($args));
 }