/** * Returns Xml representation of the collection. * * @param array $excludeFields Fields to exclude from the Xml output. * @param Opus_Model_Xml_Strategy $strategy Version of Xml to process * @return DomDocument Xml representation of the collection. */ public function toXml(array $excludeFields = null, $strategy = null) { // TODO: comment why these fields should always be excluded. $alwaysExclude = array('Theme'); if (is_null($excludeFields) === true) { $excludeFields = $alwaysExclude; } else { $excludeFields = array_merge($excludeFields, $alwaysExclude); } return parent::toXml($excludeFields, $strategy); }