本文整理汇总了PHP中ilTable2GUI::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTable2GUI::__construct方法的具体用法?PHP ilTable2GUI::__construct怎么用?PHP ilTable2GUI::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTable2GUI
的用法示例。
在下文中一共展示了ilTable2GUI::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ilExAssignment
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_exc, $a_ass_id)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->exercise = $a_exc;
$this->ass_id = $a_ass_id;
// assignment id
$this->exc_id = $a_exc->getId();
include_once "./Modules/Exercise/classes/class.ilExAssignment.php";
$this->ass = new ilExAssignment($this->ass_id);
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setData($this->getDeliveredFiles());
$this->setTitle($this->lng->txt("already_delivered_files") . " - " . $this->ass->getTitle());
$this->setLimit(9999);
$this->addColumn($this->lng->txt(""), "", "1", 1);
$this->addColumn($this->lng->txt("filename"), "filetitle");
if ($this->ass->getType() == ilExAssignment::TYPE_UPLOAD_TEAM) {
// #11957
$this->lng->loadLanguageModule("file");
$this->addColumn($this->lng->txt("file_uploaded_by"));
include_once "Services/User/classes/class.ilUserUtil.php";
}
$this->addColumn($this->lng->txt("date"), "timestamp14");
$this->setDefaultOrderField("filetitle");
$this->setEnableHeader(true);
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.delivered_file_row.html", "Modules/Exercise");
$this->disable("footer");
$this->setEnableTitle(true);
if (mktime() < $this->ass->getDeadline() || $this->ass->getDeadline() == 0) {
$this->addMultiCommand("confirmDeleteDelivered", $lng->txt("delete"));
}
$this->addMultiCommand("download", $lng->txt("download"));
}
示例2: __construct
/**
* Constructor
*
* @param object $a_parent_obj
* @param string $a_parent_cmd
* @param integer $a_ref_id
*/
public function __construct($a_parent_obj, $a_parent_cmd, $a_ref_id)
{
global $ilCtrl, $lng, $rssPermission;
$this->permission = $rssPermission;
$this->lng = $lng;
$this->ctrl = $ilCtrl;
$this->pl = ilRoomSharingPlugin::getInstance();
$this->parent_obj = $a_parent_obj;
$this->ref_id = $a_ref_id;
$this->setId("roomobj");
$this->bookings = new ilRoomSharingBookings($a_parent_obj->getPoolId());
$this->bookings->setPoolId($a_parent_obj->getPoolId());
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setTitle($this->lng->txt("rep_robj_xrs_bookings"));
$this->setLimit(10);
// data sets per page
$this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
// add columns and column headings
$this->addColumns();
// checkboxes labeled with "bookings" get affected by the "Select All"-Checkbox
$this->setSelectAllCheckbox('bookings');
$this->setRowTemplate("tpl.room_appointment_row.html", "Customizing/global/plugins/Services/Repository/RepositoryObject/RoomSharing/");
// command for cancelling bookings
if ($this->permission->checkPrivilege(PRIVC::ADD_OWN_BOOKINGS) || $this->permission->checkPrivilege(PRIVC::CANCEL_BOOKING_LOWER_PRIORITY)) {
$this->addMultiCommand('confirmMultipleCancels', $this->lng->txt('rep_robj_xrs_booking_cancel'));
}
}
示例3: ilSkillTree
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_sn_id, $a_se = null)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->sn_id = $a_sn_id;
if ($a_se != null) {
$this->se = $a_se;
$this->levels = $this->se->getLevels();
}
// build title
include_once "./Services/Skill/classes/class.ilSkillTree.php";
$stree = new ilSkillTree();
$path = $stree->getPathFull($this->sn_id);
$title = $sep = "";
foreach ($path as $p) {
if ($p["type"] != "skrt") {
$title .= $sep . $p["title"];
$sep = " > ";
}
}
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setData($this->getLevels());
$this->setTitle($title);
$this->setLimit(9999);
$this->addColumn($this->lng->txt("skmg_your_self_evaluation"));
$this->addColumn($this->lng->txt("skmg_skill_level"));
$this->setEnableHeader(true);
// $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.self_eval_row.html", "Services/Skill");
$this->disable("footer");
$this->setEnableTitle(true);
// $this->addMultiCommand("", $lng->txt(""));
// $this->addCommandButton("", $lng->txt(""));
}
示例4: __construct
/**
* Constructor
* @return
*/
public function __construct($a_parent_obj, $a_parent_cmd, $a_ref_id, $a_role_id, $a_type, $a_show_admin_permissions = false)
{
global $ilCtrl, $rbacreview, $tpl;
$this->tpl_type = $a_type;
$this->show_admin_permissions = $a_show_admin_permissions;
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setId('role_template_' . $a_ref_id . '_' . $a_type);
$this->setFormName('role_template_permissions');
$this->setSelectAllCheckbox('template_perm[' . $this->getTemplateType() . ']');
$this->lng->loadLanguageModule('rbac');
$this->ref_id = $a_ref_id;
$this->role_id = $a_role_id;
$this->setRowTemplate("tpl.obj_role_template_perm_row.html", "Services/AccessControl");
$this->setLimit(100);
$this->setShowRowsSelector(false);
$this->setDisableFilterHiding(true);
$this->setNoEntriesText($this->lng->txt('msg_no_roles_of_type'));
$this->setEnableHeader(false);
$this->disable('sort');
$this->disable('numinfo');
$this->disable('form');
$this->addColumn('', '', '0');
$this->addColumn('', '', '100%');
$this->initTemplatePermissions();
}
示例5:
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_presenter)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->presenter = $a_presenter;
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setTitle($lng->txt("search_results"));
$this->setLimit(999);
// $this->setId("srcres");
//$this->addColumn("", "", "1", true);
#$this->addColumn($this->lng->txt("type"), "type", "1");
#$this->addColumn($this->lng->txt("search_title_description"), "title_sort");
$this->addColumn($this->lng->txt("type"), "", "1");
$this->addColumn($this->lng->txt("search_title_description"), "");
if ($this->enabledRelevance()) {
#$this->addColumn($this->lng->txt('lucene_relevance_short'),'s_relevance','50px');
$this->addColumn($this->lng->txt('lucene_relevance_short'), '', '50px');
$this->setDefaultOrderField("s_relevance");
$this->setDefaultOrderDirection("desc");
}
$this->addColumn($this->lng->txt("actions"), "", "10px");
$this->setEnableHeader(true);
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.search_result_row.html", "Services/Search");
//$this->disable("footer");
$this->setEnableTitle(true);
$this->setEnableNumInfo(false);
include_once "Services/Object/classes/class.ilObjectActivation.php";
}
示例6: __construct
/**
* Constructor
*
* @access public
* @param
* @return
*/
public function __construct($a_parent_obj, $a_parent_cmd, $a_write_access = false)
{
parent::__construct($a_parent_obj, $a_parent_cmd);
global $lng, $ilCtrl;
$this->lng = $lng;
$this->ctrl = $ilCtrl;
$this->setWriteAccess($a_write_access);
$this->setFormName('surveyquestionbrowser');
$this->setStyle('table', 'fullwidth');
$this->addColumn('', 'f', '1%');
$this->addColumn($this->lng->txt("title"), 'title', '');
$this->addColumn('', 'preview', '');
$this->addColumn($this->lng->txt("description"), 'description', '');
$this->addColumn($this->lng->txt("question_type"), 'ttype', '');
$this->addColumn($this->lng->txt("author"), 'author', '');
$this->addColumn($this->lng->txt("create_date"), 'created', '');
$this->addColumn($this->lng->txt("last_update"), 'updated', '');
$this->addColumn($this->lng->txt("obj_spl"), 'spl', '');
$this->setPrefix('q_id');
$this->setSelectAllCheckbox('q_id');
$this->addMultiCommand('insertQuestions', $this->lng->txt('insert'));
$this->setRowTemplate("tpl.il_svy_svy_questionbrowser_row.html", "Modules/Survey");
$this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
$this->setDefaultOrderField("title");
$this->setDefaultOrderDirection("asc");
include_once "./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
$this->questionpools = ilObjSurveyQuestionPool::_getAvailableQuestionpools($use_object_id = TRUE, false, true);
$this->enable('sort');
$this->enable('header');
$this->enable('select_all');
$this->setFilterCommand('filterQuestionBrowser');
$this->setResetCommand('resetfilterQuestionBrowser');
$this->initFilter();
}
示例7: ilAdministrationGUI
/**
* Constructor
*
* @param $a_editable Define whether the role assignment is editable or not.
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_role_id, $a_editable = true)
{
global $ilCtrl, $lng, $ilAccess, $lng, $rbacsystem;
$this->setId("rbac_ua_" . $a_role_id);
$this->role_id = $a_role_id;
$this->roleAssignmentEditable = $a_editable;
parent::__construct($a_parent_obj, $a_parent_cmd);
// $this->setTitle($this->lng->txt("users"));
$this->addColumn("", "", "1", true);
$this->addColumn($this->lng->txt("login"), "login", "29%");
$this->addColumn($this->lng->txt("firstname"), "firstname", "29%");
$this->addColumn($this->lng->txt("lastname"), "lastname", "29%");
$this->addColumn($this->lng->txt('actions'), '', '13%');
$this->setExternalSorting(true);
$this->setExternalSegmentation(true);
$this->setEnableHeader(true);
$this->setFormAction($ilCtrl->getFormAction($this->parent_obj, $a_parent_cmd));
$this->setRowTemplate("tpl.user_assignment_row.html", "Services/AccessControl");
$this->setEnableTitle(true);
$this->setDefaultOrderField("login");
$this->setDefaultOrderDirection("asc");
if ($this->roleAssignmentEditable) {
$this->setSelectAllCheckbox("user_id[]");
$this->addMultiCommand("deassignUser", $lng->txt("remove"));
}
$this->getItems();
// mjansen: Used for mail referer link (@see fillRow). I don't want to create a new instance in each fillRow call.
include_once './Services/Administration/classes/class.ilAdministrationGUI.php';
#$this->topGuiObj = new ilAdministrationGUI();
}
示例8: __construct
/**
* Constructor
*
* @access public
* @param
* @return
*/
public function __construct($a_parent_obj, $a_parent_cmd)
{
parent::__construct($a_parent_obj, $a_parent_cmd);
global $lng, $ilCtrl;
$this->lng = $lng;
$this->ctrl = $ilCtrl;
$this->counter = 1;
$this->setFormName('inviteusers');
$this->setStyle('table', 'fullwidth');
$this->addColumn('', 'f', '1%');
$this->addColumn($this->lng->txt("login"), 'login', '');
$this->addColumn($this->lng->txt("firstname"), 'firstname', '');
$this->addColumn($this->lng->txt("lastname"), 'lastname', '');
$this->addColumn($this->lng->txt("clientip"), 'clientip', '');
$this->setTitle($this->lng->txt('search_users'), 'icon_usr.png', $this->lng->txt('usr'));
$this->setRowTemplate("tpl.il_as_tst_invite_users_row.html", "Modules/Test");
$this->addMultiCommand('addParticipants', $this->lng->txt('add'));
$this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
$this->setDefaultOrderField("login");
$this->setDefaultOrderDirection("asc");
$this->setPrefix('user_select');
$this->setSelectAllCheckbox('user_select');
$this->enable('header');
$this->enable('sort');
$this->enable('select_all');
}
示例9: ilSetting
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_lm)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->lm = $a_lm;
$this->lm_set = new ilSetting("lm");
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setData(ilLMPageObject::getPageList($this->lm->getId()));
$this->setTitle($lng->txt("cont_pages"));
$this->addColumn($this->lng->txt(""), "", "1");
$this->addColumn($this->lng->txt("type"), "", "1");
$this->addColumn($this->lng->txt("title"));
$this->addColumn($this->lng->txt("cont_usage"));
$this->setSelectAllCheckbox("id[]");
if ($this->lm->getLayoutPerPage()) {
$this->addColumn($this->lng->txt("cont_layout"));
}
$this->setLimit(9999);
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.page_list_row.html", "Modules/LearningModule");
if (ilEditClipboard::getContentObjectType() == "pg" && ilEditClipboard::getAction() == "copy") {
$this->addMultiCommand("pastePage", $lng->txt("pastePage"));
}
if ($this->lm->getLayoutPerPage()) {
$this->addMultiCommand("setPageLayout", $lng->txt("cont_set_layout"));
}
$this->addMultiCommand("activatePages", $lng->txt("cont_de_activate"));
$this->addMultiCommand("movePage", $lng->txt("movePage"));
$this->addMultiCommand("copyPage", $lng->txt("copyPage"));
$this->addMultiCommand("delete", $lng->txt("delete"));
$this->addMultiCommand("selectHeader", $lng->txt("selectHeader"));
$this->addMultiCommand("selectFooter", $lng->txt("selectFooter"));
// $this->addCommandButton("", $lng->txt(""));
}
示例10: __construct
/**
* Constructor
*
* @param $a_parent_obj
* @param string $a_parent_cmd
* @param int $a_ref_id
* @param bool $a_write_access
*
* @return \ilTestQuestionBrowserTableGUI
*/
public function __construct($a_parent_obj, $a_parent_cmd, $a_ref_id, $a_write_access = false)
{
$this->setId('qst_browser_' . $a_ref_id);
parent::__construct($a_parent_obj, $a_parent_cmd);
global $lng, $ilCtrl;
$this->lng = $lng;
$this->ctrl = $ilCtrl;
$this->setWriteAccess($a_write_access);
$this->setFormName('questionbrowser');
$this->setStyle('table', 'fullwidth');
$this->addColumn('', '', '1%', true);
$this->addColumn($this->lng->txt("tst_question_title"), 'title', '');
$this->addColumn($this->lng->txt("description"), 'description', '');
$this->addColumn($this->lng->txt("tst_question_type"), 'ttype', '');
$this->addColumn($this->lng->txt("author"), 'author', '');
$this->addColumn($this->lng->txt("create_date"), 'created', '');
$this->addColumn($this->lng->txt("last_update"), 'tstamp', '');
// name of col is proper "updated" but in data array the key is "tstamp"
$this->addColumn($this->lng->txt("qpl"), 'qpl', '');
$this->addColumn($this->lng->txt("working_time"), 'working_time', '');
if ($this->getWriteAccess()) {
$this->addMultiCommand('insertQuestions', $this->lng->txt('insert'));
}
$this->setSelectAllCheckbox('q_id');
$this->setRowTemplate("tpl.il_as_tst_question_browser_row.html", "Modules/Test");
$this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
$this->setDefaultOrderField("title");
$this->setDefaultOrderDirection("asc");
$this->enable('sort');
$this->enable('header');
$this->enable('select_all');
$this->setFilterCommand('filterAvailableQuestions');
$this->setResetCommand('resetfilterAvailableQuestions');
$this->initFilter();
}
示例11: ilSkillTree
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_obj_id, $a_mode = self::MODE_SCAT)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$ilCtrl->setParameter($a_parent_obj, "tmpmode", $a_mode);
$this->mode = $a_mode;
include_once "./Services/Skill/classes/class.ilSkillTree.php";
$this->skill_tree = new ilSkillTree();
$this->obj_id = $a_obj_id;
parent::__construct($a_parent_obj, $a_parent_cmd);
if ($this->mode == self::MODE_SCAT) {
$childs = $this->skill_tree->getChildsByTypeFilter($a_obj_id, array("skrt", "skll", "scat", "sktr"));
$childs = ilUtil::sortArray($childs, "order_nr", "asc", true);
$this->setData($childs);
} else {
if ($this->mode == self::MODE_SCTP) {
$childs = $this->skill_tree->getChildsByTypeFilter($a_obj_id, array("skrt", "sktp", "sctp"));
$childs = ilUtil::sortArray($childs, "order_nr", "asc", true);
$this->setData($childs);
}
}
if ($this->obj_id != $this->skill_tree->readRootId()) {
// $this->setTitle(ilSkillTreeNode::_lookupTitle($this->obj_id));
}
$this->setTitle($lng->txt("skmg_items"));
$this->addColumn($this->lng->txt(""), "", "1px", true);
$this->addColumn($this->lng->txt("type"), "", "1px");
$this->addColumn($this->lng->txt("skmg_order"), "", "1px");
$this->addColumn($this->lng->txt("title"));
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.skill_cat_row.html", "Services/Skill");
$this->addMultiCommand("deleteNodes", $lng->txt("delete"));
$this->addMultiCommand("cutItems", $lng->txt("cut"));
$this->addMultiCommand("copyItems", $lng->txt("copy"));
$this->addCommandButton("saveOrder", $lng->txt("skmg_save_order"));
}
示例12: ilEphAssignmentTableGUI
/**
* Constructor
*/
function ilEphAssignmentTableGUI($a_parent_obj, $a_parent_cmd, $a_eph)
{
global $ilCtrl, $lng, $ilAccess;
$this->eph = $a_eph;
$this->setId("ephass" . $this->eph->getId());
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setTitle($lng->txt("rep_robj_xeph_assignments"));
$this->setTopCommands(true);
// if you add pagination and disable the unlimited setting:
// fix saving of ordering of single pages!
$this->setLimit(9999);
$this->addColumn("", "", "1", true);
$this->addColumn($lng->txt("title"), "title");
$this->addColumn($lng->txt("rep_robj_xeph_presentation_order"), "order_val");
$this->addColumn($lng->txt("rep_robj_xeph_start_time"), "start_time");
$this->addColumn($lng->txt("rep_robj_xeph_deadline"), "deadline");
$this->addColumn($lng->txt("rep_robj_xeph_mandatory"), "mandatory");
$this->addColumn($lng->txt("rep_robj_xeph_instruction"), "", "40%");
$this->addColumn($lng->txt("actions"));
$this->setDefaultOrderField("val_order");
$this->setDefaultOrderDirection("asc");
$this->setEnableHeader(true);
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.eph_assignments_row.html", "Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus");
$this->setEnableTitle(true);
$this->setSelectAllCheckbox("id");
$this->addMultiCommand("confirmDeleteAssignment", $lng->txt("delete"));
$this->addCommandButton("orderAssignmentsByDeadline", $lng->txt("rep_robj_xeph_order_by_deadline"));
$this->addCommandButton("saveAssignmentsOrder", $lng->txt("rep_robj_xeph_save_order"));
include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilEphAssignment.php";
$data = ilEphAssignment::getAssignmentDataOfEphorus($this->eph->getId());
$this->setData($data);
}
示例13:
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_user_id, $a_shared = false)
{
global $ilCtrl, $lng;
$this->user_id = (int) $a_user_id;
$this->shared = (bool) $a_shared;
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setTitle($lng->txt("prtf_portfolios"));
if (!$this->shared) {
$this->addColumn($this->lng->txt(""), "", "1");
}
$this->addColumn($this->lng->txt("title"), "title", "50%");
if (!$this->shared) {
$this->addColumn($this->lng->txt("online"), "is_online");
$this->addColumn($this->lng->txt("prtf_default_portfolio"), "is_default");
}
$this->addColumn($this->lng->txt("actions"));
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.portfolio_row.html", "Services/Portfolio");
if (!$this->shared) {
$this->addMultiCommand("confirmPortfolioDeletion", $lng->txt("delete"));
$this->addCommandButton("saveTitles", $lng->txt("prtf_save_status_and_titles"));
}
$this->getItems();
$lng->loadLanguageModule("wsp");
include_once './Services/Link/classes/class.ilLink.php';
}
示例14: ilEphAssignment
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_eph, $a_ass_id)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->ephorus = $a_eph;
$this->ass_id = $a_ass_id;
// assignment id
$this->eph_id = $a_eph->getId();
include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilEphAssignment.php";
$this->ass = new ilEphAssignment($this->ass_id);
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setData($this->getDeliveredFiles());
$this->setTitle($this->lng->txt("already_delivered_files") . " - " . $this->ass->getTitle());
$this->setLimit(9999);
$this->addColumn($this->lng->txt(""), "", "1", 1);
$this->addColumn($this->lng->txt("filename"));
$this->addColumn($this->lng->txt("date"));
$this->setEnableHeader(true);
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.delivered_file_row.html", "Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus");
$this->disable("footer");
$this->setEnableTitle(true);
if (mktime() < $this->ass->getDeadline()) {
$this->addMultiCommand("confirmDeleteDelivered", $lng->txt("delete"));
}
$this->addMultiCommand("download", $lng->txt("download"));
}
示例15: __construct
/**
* Constructor
* @param ilObject $a_parent_obj
* @param type $a_parent_cmd
* @param type $a_test_type
*/
public function __construct($a_parent_obj, $a_parent_cmd, $a_container_id, $a_test_type)
{
$this->test_type = $a_test_type;
$this->setId('obj_loc_' . $a_container_id);
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->settings = ilLOSettings::getInstanceByObjId($a_container_id);
}