protected function walk(array $array, INode $root) { foreach ($array as $k => $v) { $root->addNode($node = new Node($k)); if (!is_array($v)) { $node->setValue($v); continue; } $this->walk($v, $node); } }
public function getPiccoAttributeList() { if ($this->piccoAttributeList === null) { $this->piccoAttributeList = array_filter(parent::getAttributeList(), function ($value, $key) { return strpos($key, 'p:') !== false; }, ARRAY_FILTER_USE_BOTH); } return $this->piccoAttributeList; }