L1fieldName = 'name'; $this->L1fieldNameSql = 'tam.nombre'; $this->L1inner = ''; $this->L1orderByFinal = 'name'; $this->L2condition = "AND tam.nombre = '".$this->symbol2name($this->rootID)."'"; } protected function getData() { if ($this->id == -1) { $this->getFirstLevel(); } else if ($this->type == 'module') { $this->getSecondLevel(); } else if ($this->type == 'agent') { $this->getThirdLevel(); } } protected function getProcessedItemsFirstLevel($items) { $processed_items = []; foreach ($items as $key => $item) { $name = $this->name2symbol($item['name']); $processed_item = $this->getProcessedItem($item); $processed_item['id'] = $name; $processed_item['rootID'] = $name; $processed_items[] = $processed_item; } return $processed_items; } }