/** * Constructor * * @param string $a_title Title * @param string $a_postvar Post Variable */ function __construct($a_taxonomy_id, $a_multi = true, $a_title = "", $a_postvar = "", $a_include_please_select = true) { global $lng; $lng->loadLanguageModule("tax"); $this->setMulti($a_multi); $this->include_please_select = $a_include_please_select; if ($a_title == "") { $a_title = $lng->txt("tax_taxonomy"); } if ($a_postvar == "") { $a_postvar = "tax_node_assign"; } parent::__construct($a_title, $a_postvar); $this->setType("tax_assign"); if ((int) $a_taxonomy_id == 0) { throw new ilTaxonomyExceptions("No taxonomy ID passed to ilTaxAssignInputGUI."); } $this->setTaxonomyId((int) $a_taxonomy_id); }
/** * 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("cselect"); }