61 $this->max_score = $a_score;
76 $score = $this->result[$a_obj_id][$sub_id][
'score'];
89 $this->result_string = $a_res;
119 foreach($root->children() as $object)
121 $obj_id = (string) $object[
'id'];
122 foreach($object->children() as $item)
124 $sub_id = (string) $item[
'id'];
127 $score = (string) $item[
'absoluteScore'];
128 $this->result[$obj_id][$sub_id][
'score'] = $score;
131 foreach($item->children() as $field)
133 $name = (string) $field[
'name'];
134 $this->result[$obj_id][$sub_id][$name] = (string) $field;
150 return isset($this->result[$a_obj_id][$a_sub_id][
'title']) ? $this->result[$a_obj_id][$a_sub_id][
'title'] : null;
161 return isset($this->result[$a_obj_id][$a_sub_id][
'description']) ? $this->result[$a_obj_id][$a_sub_id][
'description'] : null;
172 return isset($this->result[$a_obj_id][$a_sub_id][
'content']) ? $this->result[$a_obj_id][$a_sub_id][
'content'] : null;
182 $sub_item_ids = array();
183 if(!isset($this->result[$a_obj_id]))
187 foreach($this->result[$a_obj_id] as $sub_item_id => $data)
191 $sub_item_ids[] = $sub_item_id;
194 return $sub_item_ids ? $sub_item_ids : array();