* @version $Revision$ */ CCanDo::checkEdit(); $ex_class_event_id = CValue::get("ex_class_event_id"); $ex_class_id = CValue::get("ex_class_id"); $ex_class_event = new CExClassEvent(); $ex_class_event->load($ex_class_event_id); $host_object = null; $reference1 = null; $reference2 = null; /** @var CEnumSpec $unicity_spec */ $unicity_spec = $ex_class_event->_specs["unicity"]; // mise a jour des specs de l'unicité pour etre plus user friendly if ($ex_class_event->_id) { $ex_class_event->loadRefsConstraints(); $ex_class_event->loadRefsNotes(); $ex_class_event->getHostClassOptions(); foreach ($ex_class_event->_ref_constraints as $_ex_constraint) { $_ex_constraint->loadTargetObject(); if ($_ex_constraint->_ref_target_object instanceof CMediusers) { $_ex_constraint->_ref_target_object->loadRefFunction(); } } $unicity_spec->_locales["host"] = "Unique pour <strong>" . CAppUI::tr($ex_class_event->host_class) . "</strong>"; if ($ex_class_event->host_class != "CMbObject" && $ex_class_event->host_class) { $host_object = new $ex_class_event->host_class(); $reference1_class = $ex_class_event->_host_class_options["reference1"][0]; $reference1 = new $reference1_class(); $reference2_class = $ex_class_event->_host_class_options["reference2"][0]; $reference2 = new $reference2_class(); }