/**
  * Execute command
  */
 function __construct($a_id = 0)
 {
     global $ilCtrl;
     parent::__construct($a_id, ilObject2GUI::OBJECT_ID);
     $ilCtrl->saveParameter($this, "tax_node");
     $ilCtrl->saveParameter($this, "tax_id");
 }
 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     global $lng, $ilCtrl, $tpl;
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     $lng->loadLanguageModule("dcl");
     if (isset($_REQUEST['table_id'])) {
         $this->table_id = $_REQUEST['table_id'];
     } elseif ($a_id > 0) {
         $this->table_id = $this->object->getMainTableId();
     }
     /**
      * @var ilCtrl $ilCtrl
      */
     if (!$ilCtrl->isAsynch()) {
         ilYuiUtil::initConnection();
         ilOverlayGUI::initJavascript();
         $tpl->addJavaScript('Modules/DataCollection/js/ilDataCollection.js');
         $tpl->addJavaScript("Modules/DataCollection/js/datacollection.js");
         $this->tpl->addOnLoadCode("ilDataCollection.setEditUrl('" . $ilCtrl->getLinkTargetByClass(array('ilrepositorygui', 'ilobjdatacollectiongui', 'ildatacollectionrecordeditgui'), 'edit', '', true) . "');");
         $this->tpl->addOnLoadCode("ilDataCollection.setCreateUrl('" . $ilCtrl->getLinkTargetByClass(array('ilrepositorygui', 'ilobjdatacollectiongui', 'ildatacollectionrecordeditgui'), 'create', '', true) . "');");
         $this->tpl->addOnLoadCode("ilDataCollection.setSaveUrl('" . $ilCtrl->getLinkTargetByClass(array('ilrepositorygui', 'ilobjdatacollectiongui', 'ildatacollectionrecordeditgui'), 'save', '', true) . "');");
         $this->tpl->addOnLoadCode("ilDataCollection.setDataUrl('" . $ilCtrl->getLinkTargetByClass(array('ilrepositorygui', 'ilobjdatacollectiongui', 'ildatacollectionrecordeditgui'), 'getRecordData', '', true) . "');");
     }
     $ilCtrl->saveParameter($this, "table_id");
 }
Ejemplo n.º 3
0
 /**
  * Execute command
  */
 function __construct($a_id = 0)
 {
     global $ilCtrl, $lng;
     parent::__construct($a_id, ilObject2GUI::OBJECT_ID);
     $ilCtrl->saveParameter($this, "tax_node");
     $ilCtrl->saveParameter($this, "tax_id");
     $lng->loadLanguageModule("tax");
 }
Ejemplo n.º 4
0
 /**
  * Constructor.
  */
 function __construct($a_ref_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     parent::__construct($a_ref_id, $a_id_type, $a_parent_node_id);
     $this->plugin = ilPlugin::getPluginObject(IL_COMP_SERVICE, "Repository", "robj", ilPlugin::lookupNameForId(IL_COMP_SERVICE, "Repository", "robj", $this->getType()));
     if (!is_object($this->plugin)) {
         die("ilObjectPluginGUI: Could not instantiate plugin object for type " . $this->getType() . ".");
     }
 }
 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     global $ilUser;
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     $this->user_id = $ilUser->getId();
     $this->lng->loadLanguageModule("prtf");
     $this->lng->loadLanguageModule("user");
 }
 /**
  * @param int $a_id
  * @param int $a_id_type
  * @param int $a_parent_node_id
  */
 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     global $lng, $ilias;
     $this->lng = $lng;
     $this->ilias = $ilias;
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     $lng->loadLanguageModule('bibl');
     if ($a_id > 0) {
         $this->bibl_obj = $this->object;
     }
 }
 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     global $lng, $ilCtrl;
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     $lng->loadLanguageModule("dcl");
     if (isset($_REQUEST['table_id'])) {
         $this->table_id = $_REQUEST['table_id'];
     } elseif ($a_id > 0) {
         $this->table_id = $this->object->getMainTableId();
     }
     $ilCtrl->saveParameter($this, "table_id");
 }
 /**
  * @param int $a_id
  * @param int $a_id_type
  * @param int $a_parent_node_id
  */
 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     /**
      * @var $lng  ilLanguage
      * @var $ilDB ilDB
      */
     global $lng, $ilDB;
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     $this->lng->loadLanguageModule('tos');
     $this->factory = new ilTermsOfServiceTableDataProviderFactory();
     $this->factory->setLanguageAdapter($lng);
     $this->factory->setDatabaseAdapter($ilDB);
 }
Ejemplo n.º 9
0
 function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     global $lng, $ilCtrl;
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     if ($this->object) {
         $this->month = (string) $_REQUEST["bmn"];
         $this->keyword = (string) $_REQUEST["kwd"];
         $this->author = (int) $_REQUEST["ath"];
         // gather postings by month
         $this->items = $this->buildPostingList($this->object->getId());
         if ($this->items) {
             // current month (if none given or empty)
             if (!$this->month || !$this->items[$this->month]) {
                 $this->month = array_keys($this->items);
                 $this->month = array_shift($this->month);
             }
         }
         $ilCtrl->setParameter($this, "bmn", $this->month);
     }
     $lng->loadLanguageModule("blog");
     $ilCtrl->saveParameter($this, "prvm");
 }
Ejemplo n.º 10
0
 function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     global $lng;
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     $lng->loadLanguageModule("poll");
 }
 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 {
     parent::__construct($a_id, $a_id_type, $a_parent_node_id);
     $this->lng->loadLanguageModule('ecs');
 }