46 public function _search($query, $field=
"title") {
48 foreach ( $this->elements as $element ) {
50 if ($element->search($query, $field) !==
false)
51 $result[]=$element->asArray();
53 if (\array_key_exists($field, $element)) {
54 $value=$element[$field];
55 if (\stripos($value, $query) !==
false) {
61 if (\
sizeof($result) > 0) {