* @package tao */ class tao_actions_form_Role extends tao_actions_form_Instance { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- // --- OPERATIONS --- /** * Short description of method initElements * * @access public * @author Joel Bout, * @return mixed */ public function initElements() { parent::initElements(); $encodedIncludesRolePropertyUri = tao_helpers_Uri::encode(GenerisRdf::PROPERTY_ROLE_INCLUDESROLE); $encodedInstanceUri = tao_helpers_Uri::encode($this->getInstance()->getUri()); $rolesElement = $this->form->getElement($encodedIncludesRolePropertyUri); if (!is_null($rolesElement)) { $rolesOptions = $rolesElement->getOptions(); // remove the role itself in the list of includable roles // to avoid cyclic inclusions (even if the system supports it). if (array_key_exists($encodedInstanceUri, $rolesOptions)) { unset($rolesOptions[$encodedInstanceUri]); } $rolesElement->setOptions($rolesOptions); } } /** * Short description of method getTopClazz * * @access public * @author Joel Bout, * @return core_kernel_classes_Class * @see tao_actions_form_Generis::getTopClazz() */ public function getTopClazz() { $returnValue = null; $returnValue = new core_kernel_classes_Class(GenerisRdf::CLASS_ROLE); return $returnValue; } }