/**
  * @param array $array
  */
 public function __construct($array)
 {
     if (is_object($array)) {
         $array = $array->toArray();
     }
     parent::__construct($array);
 }
Exemplo n.º 2
0
 public function __construct(\ResourceBundle $bundle)
 {
     $storage = array();
     foreach ($bundle as $key => $value) {
         $storage[$key] = $value instanceof \ResourceBundle ? new self($value) : $value;
     }
     parent::__construct($storage);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 6
0
 function __construct($data)
 {
     parent::__construct($data, \RecursiveIteratorIterator::SELF_FIRST);
 }
Exemplo n.º 7
0
 /**
  * @param Item[] $items
  */
 public function __construct(array $items)
 {
     parent::__construct($items);
 }
Exemplo n.º 8
0
 public function __construct($arr)
 {
     parent::__construct($arr);
 }
Exemplo n.º 9
0
 /** 
  * @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);
 }
Exemplo n.º 10
0
 /**
  *  create instance
  *  
  *  @param  array $arr
  */
 public function __construct(array $arr)
 {
     $this->iterator = new ArrayIterator($arr);
     $this->stack = new SplStack();
     parent::__construct($arr);
 }