public function prepareElementForEditor(ilADTFormBridge $a_bridge) { $a_bridge->setTextInputMode(true); }
/** * Check if incoming values should be imported at all * * @param ilADTFormBridge $a_parent_adt * @return bool */ public function shouldBeImportedFromPost(ilADTFormBridge $a_parent_adt = null) { if ($this->isDisabled()) { return false; } // inactive parent elements disable importing if ($a_parent_adt) { $parent_option = null; $parent_element = $this->getParentElement(); if (is_array($parent_element)) { $parent_option = $parent_element[1]; } return $a_parent_adt->isActiveForSubItems($parent_option); } return true; }