本文整理汇总了PHP中ilTable2GUI类的典型用法代码示例。如果您正苦于以下问题:PHP ilTable2GUI类的具体用法?PHP ilTable2GUI怎么用?PHP ilTable2GUI使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ilTable2GUI类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @access public
* @param
* @return
*/
public function __construct($a_parent_obj, $a_parent_cmd, $is_anonymized)
{
$this->setId("svy_usr");
parent::__construct($a_parent_obj, $a_parent_cmd);
global $lng, $ilCtrl;
$this->is_anonymized = $is_anonymized;
$this->lng = $lng;
$this->ctrl = $ilCtrl;
$this->counter = 1;
$this->setFormName('invitegroups');
$this->setStyle('table', 'fullwidth');
$this->addColumn($this->lng->txt("username"), 'username', '');
/* #8211
if (!$is_anonymized)
{
$this->addColumn($this->lng->txt("gender"),'gender', '');
}
*/
$this->addColumn($this->lng->txt("question"), '', '');
$this->addColumn($this->lng->txt("results"), '', '');
$this->addColumn($this->lng->txt("workingtime"), 'workingtime', '');
$this->setRowTemplate("tpl.il_svy_svy_results_user_row.html", "Modules/Survey");
$this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
$this->setDefaultOrderField('username');
$this->setShowRowsSelector(true);
$this->enable('header');
$this->disable('select_all');
}
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:35,代码来源:class.ilSurveyResultsUserTableGUI.php
示例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'));
}
}
开发者ID:studer-raimann,项目名称:RoomSharing,代码行数:34,代码来源:class.ilRoomSharingBookingsTableGUI.php
示例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(""));
}
开发者ID:arlendotcn,项目名称:ilias,代码行数:36,代码来源:class.ilSkillSelfEvalSkillTableGUI.php
示例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();
}
开发者ID:arlendotcn,项目名称:ilias,代码行数:29,代码来源:class.ilObjectRoleTemplatePermissionTableGUI.php
示例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";
}
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:31,代码来源:class.ilSearchResultTableGUI.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();
}
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:41,代码来源:class.ilSurveyQuestionbrowserTableGUI.php
示例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();
}
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:35,代码来源:class.ilAssignedUsersTableGUI.php
示例8: 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"));
}
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:38,代码来源:class.ilSkillCatTableGUI.php
示例9: __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');
}
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:33,代码来源:class.ilTestInviteUsersTableGUI.php
示例10: 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);
}
开发者ID:jmcgettrick,项目名称:ilias-ephorus,代码行数:36,代码来源:class.ilEphAssignmentTableGUI.php
示例11: __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();
}
开发者ID:arlendotcn,项目名称:ilias,代码行数:45,代码来源:class.ilTestQuestionBrowserTableGUI.php
示例12:
/**
* 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';
}
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:29,代码来源:class.ilPortfolioTableGUI.php
示例13: 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"));
}
开发者ID:jmcgettrick,项目名称:ilias-ephorus,代码行数:29,代码来源:class.ilEphDeliveredFilesTableGUI.php
示例14: 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"));
}
开发者ID:arlendotcn,项目名称:ilias,代码行数:36,代码来源:class.ilExcDeliveredFilesTableGUI.php
示例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);
}
开发者ID:arlendotcn,项目名称:ilias,代码行数:13,代码来源:class.ilLOTestAssignmentTableGUI.php
示例16: 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(""));
}
开发者ID:arlendotcn,项目名称:ilias,代码行数:36,代码来源:class.ilLMPagesTableGUI.php
示例17: foreach
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, ilUDFPermissionHelper $a_permissions)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->permissions = $a_permissions;
$this->perm_map = ilCustomUserFieldsGUI::getAccessPermissions();
parent::__construct($a_parent_obj, $a_parent_cmd);
$this->setTitle($lng->txt("user_defined_list"));
$this->setLimit(9999);
$this->addColumn("", "", 1);
$this->addColumn($this->lng->txt("user_field"), "");
$this->addColumn($this->lng->txt("access"), "");
$this->addColumn($this->lng->txt("export") . " / " . $this->lng->txt("search") . " / " . $this->lng->txt("certificate"), "");
$this->addColumn($this->lng->txt("actions"), "");
$this->setEnableHeader(true);
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.std_fields_settings_row.html", "Services/User");
$this->disable("footer");
$this->setEnableTitle(true);
$user_field_definitions = ilUserDefinedFields::_getInstance();
$fds = $user_field_definitions->getDefinitions();
foreach ($fds as $k => $f) {
$fds[$k]["key"] = $k;
}
$this->setData($fds);
$this->addCommandButton("updateFields", $lng->txt("save"));
$this->addMultiCommand("askDeleteField", $lng->txt("delete"));
}
开发者ID:JKN-INC,项目名称:SHELBY-ILIAS,代码行数:30,代码来源:class.ilCustomUserFieldSettingsTableGUI.php
示例18: array
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_tree, $a_node_id, $a_tax)
{
global $ilCtrl, $lng, $ilAccess, $lng;
if ($a_node_id == "") {
$a_node_id = $a_tree->readRootId();
}
$this->tree = $a_tree;
$this->tax = $a_tax;
$this->node_id = $a_node_id;
parent::__construct($a_parent_obj, $a_parent_cmd);
$childs = $this->tree->getChildsByTypeFilter($a_node_id, array("taxn"));
if ($a_tax->getSortingMode() == ilObjTaxonomy::SORT_MANUAL) {
$childs = ilUtil::sortArray($childs, "order_nr", "asc", false);
} else {
$childs = ilUtil::sortArray($childs, "title", "asc", false);
}
$this->setData($childs);
$this->setTitle($lng->txt("tax_nodes"));
$this->addColumn($this->lng->txt(""), "", "1px", true);
if ($this->tax->getSortingMode() == ilObjTaxonomy::SORT_MANUAL) {
$this->addColumn($this->lng->txt("tax_order"), "order_nr", "1px");
$this->setDefaultOrderField("order_nr");
$this->setDefaultOrderDirection("asc");
}
$this->addColumn($this->lng->txt("title"));
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.tax_row.html", "Services/Taxonomy");
$this->addMultiCommand("deleteItems", $lng->txt("delete"));
$this->addMultiCommand("moveItems", $lng->txt("move"));
$this->addCommandButton("saveSettingsAndSorting", $lng->txt("save"));
}
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:34,代码来源:class.ilTaxonomyTableGUI.php
示例19: __construct
/**
* Constructor
*
* @param ilObject $a_parent_obj
* @param string $a_parent_cmd
* @param int $a_mode
* @param int $a_team_id
* @param ilExAssignment $a_assignment
* @param array $a_member_ids
* @param bool $a_read_only
*/
public function __construct($a_parent_obj, $a_parent_cmd, $a_mode, $a_team_id, ilExAssignment $a_assignment, array $a_member_ids = null, $a_read_only = false)
{
global $ilCtrl;
$this->mode = $a_mode;
$this->team_id = $a_team_id;
$this->assignment = $a_assignment;
$this->member_ids = $a_member_ids;
$this->read_only = (bool) $a_read_only;
parent::__construct($a_parent_obj, $a_parent_cmd);
if (!$this->read_only) {
$this->addColumn("", "", 1);
}
$this->addColumn($this->lng->txt("name"), "name");
$this->setDefaultOrderField("name");
$this->setRowTemplate("tpl.exc_team_member_row.html", "Modules/Exercise");
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
if (!$this->read_only) {
if ($this->mode == self::MODE_ADD) {
$this->setTitle($this->lng->txt("exc_team_member_container_add"));
$this->addMultiCommand("addTeamMemberContainerAction", $this->lng->txt("add"));
} else {
$this->setTitle($this->lng->txt("exc_team_members"));
$this->addMultiCommand("confirmRemoveTeamMember", $this->lng->txt("remove"));
}
}
$this->getItems();
}
开发者ID:arlendotcn,项目名称:ilias,代码行数:38,代码来源:class.ilExAssignmentTeamTableGUI.php
示例20: ilTaxNodeAssignment
/**
* Constructor
*/
function __construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_tax, $a_comp_id, $a_obj_id, $a_item_type, $a_info_obj)
{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->setId("tax_ass_it");
$this->setLimit(9999);
$this->tax = $a_tax;
$this->node_id = $a_node_id;
$this->comp_id = $a_comp_id;
$this->obj_id = $a_obj_id;
$this->item_type = $a_item_type;
$this->info_obj = $a_info_obj;
parent::__construct($a_parent_obj, $a_parent_cmd);
include_once "./Services/Taxonomy/classes/class.ilObjTaxonomy.php";
include_once "./Services/Taxonomy/classes/class.ilTaxNodeAssignment.php";
$tax_ass = new ilTaxNodeAssignment($this->comp_id, $this->obj_id, $this->item_type, $this->tax->getId());
$this->setData($tax_ass->getAssignmentsOfNode($this->node_id));
$this->setTitle($lng->txt("tax_assigned_items"));
$this->addColumn($this->lng->txt("tax_order"));
$this->setDefaultOrderField("order_nr");
$this->setDefaultOrderDirection("asc");
$this->addColumn($this->lng->txt("title"));
$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.tax_ass_items_row.html", "Services/Taxonomy");
$this->addCommandButton("saveAssignedItemsSorting", $lng->txt("save"));
}
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:28,代码来源:class.ilTaxAssignedItemsTableGUI.php
注:本文中的ilTable2GUI类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论