public function fillObjectFromXml(SimpleXMLElement $simple_xml_node, $prefix_to_add, $exclude_params = null) { if (!is_array($exclude_params)) { $exclude_params = array(); } $exclude_params[] = 'advancedSearch'; $set_field_count = parent::fillObjectFromXml($simple_xml_node, $prefix_to_add, $exclude_params); if (isset($simple_xml_node->advancedSearch)) { $attr = $simple_xml_node->advancedSearch->attributes(); if (isset($attr['type']) && class_exists($attr['type'])) { $type = (string) $attr['type']; KalturaLog::debug("Advanced Search type[{$type}] and value[" . $simple_xml_node->advancedSearch->asXML() . "]"); $this->advancedSearch = new $type(); $this->advancedSearch->fillObjectFromXml($simple_xml_node->advancedSearch); } $set_field_count++; } return $set_field_count; }