- 20051018 ? Changes Jan Lies - 20060822 * @desc save global category model */ public function process(isys_cmdb_dao_category $p_cat) { global $index_includes; global $g_comp_template; $l_catdata = $p_cat->get_general_data(); $l_arTypeData = array(); // Make rules /** Beispiel für ein Attribut als Fremdschlüssel $l_rules[“C__CATG__SUPPLY_DISTRIBUTOR”][“p_strSelectedID”] = $l_catdata[“isys_catg_supply_list__isys_supply_distributor__id”]; */ $l_rules[“C__CATG__SUPPLY_DISTRIBUTOR”][“p_strValue”] = $l_catdata[“isys_catg_supply_list__distributor”]; $l_rules[“C__CATG__SUPPLY_PRICE”][“p_strValue”] = $l_catdata[“isys_catg_supply_list__price”]; if (! $p_cat->get_validation()) { // display the posted value in fields// so fill posted values to $l_rulesR // on’t forget the hidden one... $l_rules[“C__CATG__SUPPLY_DISTRIBUTOR”][“p_strValue”] = $_POST[“C__CATG__SUPPLY_DISTRIBUTOR”]; $l_rules[“C__CATG__SUPPLY_PRICE”][“p_strValue”] = $_POST[“C__CATG__SUPPLY_PRICE”]; // merge exiting rules with given error roles // error Roles override exiting roles $l_rules = isys_glob_array_merge ($l_rules, $p_cat->get_additional_rules()); } // Apply rules $g_comp_template->smarty_tom_add_rules(“tom.content.bottom.content”, $l_rules); $this->detail_view($p_cat); $index_includes[“contentbottomcontent”] = “./content/bottom/content/catg__supply.tpl”; } public function __construct( isys_component_template &$p_template ) { parent::__construct($p_template); } } ?>