/**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     global $lng;
     parent::__construct($a_title, $a_postvar);
     $this->setType("captcha");
     $lng->loadLanguageModule("cptch");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("nested_list");
     include_once "./Services/UIComponent/NestedList/classes/class.ilNestedList.php";
     $this->list = new ilNestedList();
     $this->list->setListClass("il_Explorer");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title, $a_postvar, $a_explorer_gui, $a_multi = false)
 {
     global $lng;
     $this->multi_nodes = $a_multi;
     $this->explorer_gui = $a_explorer_gui;
     parent::__construct($a_title, $a_postvar);
     $this->setType("exp_select");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     global $lng;
     parent::__construct($a_title, $a_postvar);
     $this->setClickableTypes($this->container_types);
     $this->setHeaderMessage($lng->txt('search_area_info'));
     $this->setType("rep_select");
     $this->setSelectText($lng->txt("select"));
 }
 /**
  * Constructor
  * @param    string $a_title      Title
  * @param    string $a_postvar    Post Variable
  */
 public function __construct($a_title = '', $a_postvar = '')
 {
     global $lng;
     parent::__construct($a_title, $a_postvar);
     $this->setType('captcha');
     if ($lng instanceof ilLanguage) {
         $lng->loadLanguageModule('cptch');
     }
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     global $lng;
     $this->lng = $lng;
     $this->lng->loadLanguageModule("meta");
     parent::__construct($a_title, $a_postvar);
     $this->setType("copyright");
     $this->settings = ilMDSettings::_getInstance();
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     global $lng;
     parent::__construct($a_title, $a_postvar);
     $this->setClickableTypes(array("root", "cat", "grp", "fold", "crs"));
     $this->setHeaderMessage($lng->txt('search_area_info'));
     $this->setType("rep_select");
     $this->setSelectText($lng->txt("select"));
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     global $lng;
     $this->lng = $lng;
     $this->lng->loadLanguageModule("meta");
     parent::__construct($a_title, $a_postvar);
     $this->setType("typical_learntime");
     $this->setValue(array(0, 0, 0, 0, 0));
 }
 public function __construct()
 {
     parent::__construct('');
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
 }
Example #11
0
 /**
  * Add sorting direction
  * @param ilFormPropertyGUI $element
  */
 protected function initSortingDirectionForm(ilContainerSortingSettings $sorting_settings, $element, $a_prefix)
 {
     $direction = new ilRadioGroupInputGUI($this->lng->txt('sorting_direction'), $a_prefix . '_sorting_direction');
     $direction->setValue($sorting_settings->getSortDirection());
     $direction->setRequired(TRUE);
     // asc
     $asc = new ilRadioOption($this->lng->txt('sorting_asc'), ilContainer::SORT_DIRECTION_ASC);
     $direction->addOption($asc);
     // desc
     $desc = new ilRadioOption($this->lng->txt('sorting_desc'), ilContainer::SORT_DIRECTION_DESC);
     $direction->addOption($desc);
     $element->addSubItem($direction);
     return $element;
 }
 protected function initCopyPageFormOptions(ilFormPropertyGUI $a_tgt)
 {
     $old = new ilRadioOption($this->lng->txt("prtf_existing_portfolio"), "old");
     $a_tgt->addOption($old);
     $options = array();
     $all = ilObjPortfolio::getPortfoliosOfUser($this->user_id);
     foreach ($all as $item) {
         $options[$item["id"]] = $item["title"];
     }
     $prtf = new ilSelectInputGUI($this->lng->txt("portfolio"), "prtf");
     $prtf->setRequired(true);
     $prtf->setOptions($options);
     $old->addSubItem($prtf);
     $new = new ilRadioOption($this->lng->txt("prtf_new_portfolio"), "new");
     $a_tgt->addOption($new);
     $tf = new ilTextInputGUI($this->lng->txt("title"), "title");
     $tf->setMaxLength(128);
     $tf->setSize(40);
     $tf->setRequired(true);
     $new->addSubItem($tf);
 }
 /**
  * @param string                           $a_title
  * @param string                           $a_postvar
  * @param ilTermsOfServiceAcceptanceEntity $user
  */
 public function __construct($a_title = '', $a_postvar = '', ilTermsOfServiceAcceptanceEntity $entity)
 {
     parent::__construct($a_title, $a_postvar);
     $this->entity = $entity;
 }
Example #14
0
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("link");
 }
 protected function initCopyPageFormOptions(ilFormPropertyGUI $a_tgt)
 {
     $old = new ilRadioOption($this->lng->txt("prtf_existing_portfolio"), "old");
     $a_tgt->addOption($old);
     $options = array();
     $all = ilObjPortfolioTemplate::getAvailablePortfolioTemplates("write");
     foreach ($all as $id => $title) {
         $options[$id] = $title;
     }
     $prtf = new ilSelectInputGUI($this->lng->txt("obj_prtt"), "prtf");
     $prtf->setRequired(true);
     $prtf->setOptions($options);
     $old->addSubItem($prtf);
     // no option to create new template here
     $a_tgt->setValue("old");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("border_width");
     $this->dirs = array("horizontal", "vertical");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("style_numeric");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("border_width");
     $this->dirs = array("all", "top", "bottom", "left", "right");
 }
 /**
  * Form Element for showing Mail Attachments
  * @param	string	Buttonlabel (e.g. edit or add) 
  */
 public function __construct($buttonLabel)
 {
     global $lng;
     $this->buttonLabel = $buttonLabel;
     parent::__construct($lng->txt('attachments'));
 }
 /**
  * Helper method to handle generic properties like setRequired(), setInfo()
  * 
  * @param ilFormPropertyGUI $a_field
  * @param ilADTDefinition $a_def
  */
 protected function addBasicFieldProperties(ilFormPropertyGUI $a_field, ilADTDefinition $a_def)
 {
     if ((bool) $this->isDisabled()) {
         $a_field->setDisabled(true);
     } else {
         if ($this->isRequired()) {
             $a_field->setRequired(true);
         }
     }
     $info = $this->getInfo();
     if ($info) {
         $a_field->setInfo($info);
     }
 }
 public function __construct()
 {
     global $lng;
     parent::__construct('');
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("multi_select");
     $this->setValue(array());
 }
 /**
  * Constructor
  * @param    string $a_title      Title
  * @param    string $a_postvar    Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setRetype(false);
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("radiomatrix");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("width_height");
     $this->dirs = array("width", "height");
 }
 /**
  * Constructor
  *
  * @param
  */
 function __construct($a_title = "", $a_id = "")
 {
     parent::__construct($a_title, $a_id);
     $this->setType("glo_adv_col_sort");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
     $this->setType("background_image");
 }
 /**
  * Constructor
  *
  * @param	string	$a_title	Title
  * @param	string	$a_postvar	Post Variable
  */
 function __construct($a_postvar)
 {
     parent::__construct("", $a_postvar);
     $this->setType("hidden");
 }