/** * @param array $array */ public function __construct($array) { if (is_object($array)) { $array = $array->toArray(); } parent::__construct($array); }
public function __construct(\ResourceBundle $bundle) { $storage = array(); foreach ($bundle as $key => $value) { $storage[$key] = $value instanceof \ResourceBundle ? new self($value) : $value; } parent::__construct($storage); }
function __construct($arr, $tag, \Pyrus\PackageFile\v2 $parent, $dir = '') { $this->tag = $tag; $this->dir = $dir; $this->_packagefile = $parent; if ($arr instanceof FileTag) { $arr = $arr->getArrayCopy(); } parent::__construct($arr); }
public function __construct(HTML_QuickForm2_Container $container) { parent::__construct($container->getElements()); }
public function __construct($array, $flags = 0, $path = '') { parent::__construct($array, $flags = 0); $this->path = $path; }
function __construct($data) { parent::__construct($data, \RecursiveIteratorIterator::SELF_FIRST); }
/** * @param Item[] $items */ public function __construct(array $items) { parent::__construct($items); }
public function __construct($arr) { parent::__construct($arr); }
/** * @param $file XML file to open * @param $xpath query to execute */ function __construct($file, $xpath) { $xml = @simplexml_load_file($file, 'SimpleXmlIterator'); parent::__construct($xml ? $xml->xpath($xpath) : NULL); }
/** * create instance * * @param array $arr */ public function __construct(array $arr) { $this->iterator = new ArrayIterator($arr); $this->stack = new SplStack(); parent::__construct($arr); }