55 $this->result_string = $a_res;
79 foreach($root->children() as $object)
81 $obj_id = (string) $object[
'id'];
82 foreach($object->children() as $item)
84 $sub_id = (string) $item[
'id'];
85 foreach($item->children() as $field)
87 $name = (string) $field[
'name'];
88 $this->result[$obj_id][$sub_id][$name] = (string) $field;
103 return isset($this->result[$a_obj_id][$a_sub_id][
'title']) ? $this->result[$a_obj_id][$a_sub_id][
'title'] : null;
114 return isset($this->result[$a_obj_id][$a_sub_id][
'description']) ? $this->result[$a_obj_id][$a_sub_id][
'description'] : null;
125 return isset($this->result[$a_obj_id][$a_sub_id][
'content']) ? $this->result[$a_obj_id][$a_sub_id][
'content'] : null;
135 $sub_item_ids = array();
136 if(!isset($this->result[$a_obj_id]))
140 foreach($this->result[$a_obj_id] as $sub_item_id =>
$data)
144 $sub_item_ids[] = $sub_item_id;
147 return $sub_item_ids ? $sub_item_ids : array();