/** * Get the tags to be treated by this module for the specified treatment mode, visualization mode and object. * @param integer $treatmentMode The current treatment mode (see constants on top of CMS_modulesTags class for accepted values). * @param integer $visualizationMode The current visualization mode (see constants on top of cms_page class for accepted values). * @return array of tags to be treated. * @access public */ function getWantedTags($treatmentMode, $visualizationMode) { $return = parent::getWantedTags($treatmentMode, $visualizationMode); switch ($treatmentMode) { case MODULE_TREATMENT_PAGECONTENT_TAGS: //get all plugins IDs for this module $pluginsIDs = CMS_poly_object_catalog::getAllPluginDefIDForModule($this->_codename); if (is_array($pluginsIDs) && $pluginsIDs) { $return["span"] = array("selfClosed" => false, "parameters" => array('id' => 'polymod-(' . implode('|', $pluginsIDs) . ')-(.*)')); } $return["atm-if"] = array("selfClosed" => false, "parameters" => array(), 'class' => 'CMS_XMLTag_if'); $return["atm-else"] = array("selfClosed" => false, "parameters" => array(), 'class' => 'CMS_XMLTag_else'); $return["atm-start-tag"] = array("selfClosed" => true, "parameters" => array(), 'class' => 'CMS_XMLTag_start'); $return["atm-end-tag"] = array("selfClosed" => true, "parameters" => array(), 'class' => 'CMS_XMLTag_end'); $return["atm-setvar"] = array("selfClosed" => true, "parameters" => array(), 'class' => 'CMS_XMLTag_setvar'); break; case MODULE_TREATMENT_WYSIWYG_OUTER_TAGS: case MODULE_TREATMENT_WYSIWYG_INNER_TAGS: //get all plugins IDs for this module $pluginsIDs = CMS_poly_object_catalog::getAllPluginDefIDForModule($this->_codename); if (is_array($pluginsIDs) && $pluginsIDs) { $return = array("span" => array("selfClosed" => false, "parameters" => array('id' => 'polymod-(' . implode('|', $pluginsIDs) . ')-(.*)'))); } break; } return $return; }