当前位置: 首页>>代码示例>>PHP>>正文


PHP ilPlugin::getPluginObject方法代码示例

本文整理汇总了PHP中ilPlugin::getPluginObject方法的典型用法代码示例。如果您正苦于以下问题:PHP ilPlugin::getPluginObject方法的具体用法?PHP ilPlugin::getPluginObject怎么用?PHP ilPlugin::getPluginObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ilPlugin的用法示例。


在下文中一共展示了ilPlugin::getPluginObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * 
  * @param object $a_parent_class
  * @param string $a_parent_cmd
  * @return 
  */
 public function __construct($a_parent_class, $a_parent_cmd, $a_type)
 {
     global $lng, $ilCtrl, $ilUser, $objDefinition;
     parent::__construct($a_parent_class, $a_parent_cmd);
     $this->type = $a_type;
     $this->lng = $lng;
     $this->ctrl = $ilCtrl;
     if (!$objDefinition->isPlugin($this->type)) {
         $title = $this->lng->txt('obj_' . $this->type . '_duplicate');
     } else {
         include_once "Services/Component/classes/class.ilPlugin.php";
         $plugin = ilPlugin::getPluginObject(IL_COMP_SERVICE, "Repository", "robj", ilPlugin::lookupNameForId(IL_COMP_SERVICE, "Repository", "robj", $this->type));
         $title = $plugin->txt('obj_' . $this->type . '_duplicate');
     }
     $this->setTitle($title);
     $ilUser->getPref('search_max_hits');
     $this->addColumn($this->lng->txt('search_title_description'), 'title', '99%');
     $this->setEnableHeader(true);
     $this->setFormAction($ilCtrl->getFormAction($this->getParentObject()));
     $this->setRowTemplate("tpl.obj_copy_search_result_row.html", "Services/Object");
     $this->setEnableTitle(true);
     $this->setEnableNumInfo(true);
     $this->setDefaultOrderField('title');
     if ($objDefinition->isContainer($this->type)) {
         $this->addCommandButton('saveSource', $this->lng->txt('btn_next'));
     } else {
         $this->addCommandButton('saveSource', $title);
     }
     $this->addCommandButton('cancel', $this->lng->txt('btn_back'));
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:36,代码来源:class.ilObjectCopySearchResultTableGUI.php

示例2: __construct

 /**
  *	Constructor logic.
  *
  *	This table GUI constructor method initializes the
  *	object and configures the table rendering.
  */
 public function __construct(ilObjectGUI $a_parent_obj, $a_parent_cmd)
 {
     /**
      *	@var ilCtrl $ilCtrl
      */
     global $ilCtrl;
     /* Pre-configure table */
     $this->setId(sprintf('test_overview_test_list_%d', $a_parent_obj->object->getId()));
     $this->setDefaultOrderDirection('ASC');
     $this->setDefaultOrderField('title');
     // ext ordering with db is ok, but ext limiting with db is not possible,
     // since the rbac filtering is downstream to the db query
     $this->setExternalSorting(true);
     $this->setExternalSegmentation(true);
     parent::__construct($a_parent_obj, $a_parent_cmd);
     $this->setTitle(sprintf($this->lng->txt('rep_robj_xtov_test_list_table_title'), $a_parent_obj->object->getTitle()));
     $plugin = ilPlugin::getPluginObject(IL_COMP_SERVICE, 'Repository', 'robj', 'TestOverview');
     $this->setRowTemplate('tpl.simple_object_row.html', $plugin->getDirectory());
     $this->addColumn($this->lng->txt(''), '', '1px', true);
     $this->addColumn($this->lng->txt('rep_robj_xtov_test_list_hdr_test_title'), 'title');
     $this->addColumn($this->lng->txt('rep_robj_xtov_test_list_hdr_test_info'), '');
     $this->setDescription($this->lng->txt('rep_robj_xtov_test_list_description'));
     $this->setFormAction($ilCtrl->getFormAction($this->getParentObject(), 'updateSettings'));
     $this->addCommandButton('initSelectTests', $this->lng->txt('rep_robj_xtov_add_tsts_to_overview'));
     $this->addMultiCommand('removeTests', $this->lng->txt('rep_robj_xtov_remove_from_overview'));
     $this->setShowRowsSelector(true);
     $this->setSelectAllCheckbox('test_ids[]');
     $this->initFilter();
     $this->setFilterCommand('applyTestsFilter');
     $this->setResetCommand('resetTestsFilter');
 }
开发者ID:ionesoft,项目名称:TestOverview,代码行数:37,代码来源:class.ilTestListTableGUI.php

示例3: __construct

 /**
  *	Constructor logic.
  *
  *	This table GUI constructor method initializes the
  *	object and configures the table rendering.
  */
 public function __construct(ilObjectGUI $a_parent_obj, $a_parent_cmd)
 {
     /**
      *	@var ilCtrl	$ilCtrl
      */
     global $ilCtrl;
     /* Pre-configure table */
     $this->setId(sprintf("test_overview_membership_list_%d", $a_parent_obj->object->getId()));
     $this->setDefaultOrderDirection('ASC');
     $this->setDefaultOrderField('title');
     $this->setExternalSorting(true);
     $this->setExternalSegmentation(true);
     parent::__construct($a_parent_obj, $a_parent_cmd);
     $this->setTitle(sprintf($this->lng->txt('rep_robj_xtov_membership_list_table_title'), $a_parent_obj->object->getTitle()));
     $plugin = ilPlugin::getPluginObject(IL_COMP_SERVICE, 'Repository', 'robj', 'TestOverview');
     $this->setRowTemplate('tpl.simple_object_row.html', $plugin->getDirectory());
     $this->addColumn($this->lng->txt(""), '', '1px', true);
     $this->addColumn($this->lng->txt("rep_robj_xtov_membership_list_hdr_membership_title"), 'title');
     $this->addColumn($this->lng->txt("rep_robj_xtov_membership_list_hdr_membership_info"), '');
     $this->addColumn($this->lng->txt("rep_robj_xtov_item_chosen"), '');
     $this->setDescription($this->lng->txt("rep_robj_xtov_membership_list_description"));
     $this->setFormAction($ilCtrl->getFormAction($this->getParentObject(), 'updateSettings'));
     $this->addMultiCommand('addMemberships', $this->lng->txt('rep_robj_xtov_add_to_overview'));
     $this->addMultiCommand('removeMemberships', $this->lng->txt('rep_robj_xtov_remove_from_overview'));
     $this->setShowRowsSelector(true);
     /* Add 'Select All', configure filters */
     $this->setSelectAllCheckbox('membership_ids[]');
     $this->initFilter();
     $this->setFilterCommand("applyGroupsFilter");
     $this->setResetCommand("resetGroupsFilter");
 }
开发者ID:ionesoft,项目名称:TestOverview,代码行数:37,代码来源:class.ilMembershipListTableGUI.php

示例4: getPlugin

 /**
  * @return object The plugin object
  */
 public function getPlugin()
 {
     if ($this->plugin == null) {
         include_once "./Services/Component/classes/class.ilPlugin.php";
         $this->plugin = ilPlugin::getPluginObject(IL_COMP_MODULE, "TestQuestionPool", "qst", "assAccountingQuestion");
     }
     return $this->plugin;
 }
开发者ID:ilifau,项目名称:assAccountingQuestion,代码行数:11,代码来源:class.assAccountingQuestion.php

示例5: __construct

 /**
  * 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() . ".");
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:11,代码来源:class.ilObjectPluginGUI.php

示例6: __construct

 /**
  * Constructor
  *
  * @access public
  */
 public function __construct($a_type_id = 0)
 {
     // this uses the cached plugin object
     $this->plugin_object = ilPlugin::getPluginObject(IL_COMP_SERVICE, 'Repository', 'robj', 'ExternalContent');
     if ($a_type_id) {
         $this->type_id = $a_type_id;
         $this->read();
     }
 }
开发者ID:ilifau,项目名称:ExternalContent,代码行数:14,代码来源:class.ilExternalContentType.php

示例7: __construct

 /**
  * Constructor.
  */
 function __construct($a_ref_id = 0)
 {
     $this->initType();
     parent::__construct($a_ref_id, true);
     $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() . ".");
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:12,代码来源:class.ilObjectPlugin.php

示例8: addContent

 /**
  *  Add a content to the container
  *
  * @param array $attributes
  */
 public function addContent($attributes)
 {
     /**
      * @var $pluginObj ilPlugin
      *
      */
     $pluginObj = ilPlugin::getPluginObject('Services', 'Repository', 'robj', 'AdobeConnect');
     $pluginObj->includeClass('class.ilAdobeConnectContent.php');
     $this->contents[] = new ilAdobeConnectContent($attributes);
 }
开发者ID:KamuiXenom,项目名称:ILIAS_AdobeConnectPlugin,代码行数:15,代码来源:class.ilAdobeConnectContents.php

示例9: __construct

 /**
  * assJSMEQuestionGUI constructor	
  * The constructor takes possible arguments an creates an instance of the assJSMEQuestionGUI object.
  *
  * @param integer $id The database id of a TemplateQuestion question object
  * @access public
  */
 function __construct($id = -1)
 {
     parent::__construct();
     include_once "./Services/Component/classes/class.ilPlugin.php";
     $plugin = ilPlugin::getPluginObject(IL_COMP_MODULE, "TestQuestionPool", "qst", "assJSMEQuestion");
     $plugin->includeClass("class.assJSMEQuestion.php");
     $this->object = new assJSMEQuestion();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
开发者ID:ba-al,项目名称:ILIAS-ChemistryQuestion44,代码行数:18,代码来源:class.assJSMEQuestionGUI.php

示例10: __construct

 /**
  * assAccountingQuestionGUI constructor
  *
  * The constructor takes possible arguments and creates an instance of the assAccountingQuestionGUI object.
  *
  * @param integer $id The database id of a question object
  * @access public
  */
 public function __construct($id = -1)
 {
     parent::__construct();
     include_once "./Services/Component/classes/class.ilPlugin.php";
     $this->plugin = ilPlugin::getPluginObject(IL_COMP_MODULE, "TestQuestionPool", "qst", "assAccountingQuestion");
     $this->plugin->includeClass("class.assAccountingQuestion.php");
     $this->object = new assAccountingQuestion();
     $this->newUnitId = null;
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
     $this->tpl->addCss($this->plugin->getStyleSheetLocation('accqstStyles.css') . self::URL_SUFFIX, '');
 }
开发者ID:ilifau,项目名称:assAccountingQuestion,代码行数:21,代码来源:class.assAccountingQuestionGUI.php

示例11: init

 /**
  * initialisation
  */
 final function init()
 {
     $this->delete_enabled = true;
     $this->cut_enabled = true;
     $this->subscribe_enabled = true;
     $this->link_enabled = true;
     $this->payment_enabled = false;
     $this->info_screen_enabled = true;
     $this->initType();
     $this->plugin = ilPlugin::getPluginObject(IL_COMP_SERVICE, "Repository", "robj", ilPlugin::lookupNameForId(IL_COMP_SERVICE, "Repository", "robj", $this->getType()));
     $this->gui_class_name = $this->getGuiClass();
     $this->commands = $this->initCommands();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:16,代码来源:class.ilObjectPluginListGUI.php

示例12: performCommand

 /**
  * Handles all commmands, default is "configure"
  * 
  * @access	public
  */
 public function performCommand($cmd)
 {
     global $ilTabs;
     $this->pluginObj = ilPlugin::getPluginObject('Services', 'Repository', 'robj', 'AdobeConnect');
     $this->pluginObj->includeClass('class.ilAdobeConnectServer.php');
     $this->pluginObj->includeClass('class.ilXAVCPermissions.php');
     $this->tabs = $ilTabs;
     $this->getTabs();
     switch ($cmd) {
         default:
             $this->{$cmd}();
             break;
     }
 }
开发者ID:KamuiXenom,项目名称:ILIAS_AdobeConnectPlugin,代码行数:19,代码来源:class.ilAdobeConnectConfigGUI.php

示例13: getGalleryUsers

 /**
  * @return mixed
  */
 public function getGalleryUsers()
 {
     $this->pluginObj = ilPlugin::getPluginObject('Services', 'Repository', 'robj', 'AdobeConnect');
     $this->pluginObj->includeClass('class.ilAdobeConnectRoles.php');
     $xavcRoles = new ilAdobeConnectRoles($_GET['ref_id']);
     $members = $xavcRoles->getUsers();
     // MEMBERS
     if (count($members)) {
         foreach ($members as $member_id) {
             if (!($usr_obj = ilObjectFactory::getInstanceByObjId($member_id, false))) {
                 continue;
             }
             if (!$usr_obj->getActive()) {
                 continue;
             }
             $user_data[$usr_obj->getId()] = array('id' => $usr_obj->getId(), 'user' => $usr_obj);
         }
     }
     return $user_data;
 }
开发者ID:HochschuleLuzern,项目名称:ILIAS_AdobeConnectPlugin,代码行数:23,代码来源:class.ilAdobeConnectGalleryUsers.php

示例14: afterConstructor

 /**
  * Initialisation
  */
 protected function afterConstructor()
 {
     /**
      * @var $tpl $tpl
      * @var $ilUser ilObjUser
      * @var $ilTabs ilTabsGUI
      * @var $ilCtrl ilCtrl
      * @var $ilAccess ilAccessHandler
      * @var $lng $lng
      */
     global $ilUser, $ilTabs, $ilCtrl, $ilAccess, $tpl, $lng;
     $this->pluginObj = ilPlugin::getPluginObject('Services', 'Repository', 'robj', 'AdobeConnect');
     $this->form = new ilPropertyFormGUI();
     $this->tabs = $ilTabs;
     $this->ctrl = $ilCtrl;
     $this->access = $ilAccess;
     $this->tpl = $tpl;
     if (is_object($this->object)) {
         $tpl->setDescription($this->object->getLongDescription());
     }
     $this->lng = $lng;
     $this->user = $ilUser;
 }
开发者ID:KamuiXenom,项目名称:ILIAS_AdobeConnectPlugin,代码行数:26,代码来源:class.ilObjAdobeConnectGUI.php

示例15: __construct

 /**
  * @param        $a_parent_obj
  * @param string $a_parent_cmd
  */
 public function __construct($a_parent_obj, $a_parent_cmd)
 {
     /**
      * @var $ilCtrl ilCtrl
      */
     global $ilCtrl, $tpl;
     $this->ctrl = $ilCtrl;
     $tpl->addJavascript("./Customizing/global/plugins/Services/Repository/RepositoryObject/AdobeConnect/templates/js/plugin.js");
     $this->setId('xavc_participants');
     $this->setDefaultOrderDirection('ASC');
     $this->setDefaultOrderField('');
     $this->setExternalSorting(false);
     $this->setExternalSegmentation(false);
     $this->pluginObj = ilPlugin::getPluginObject('Services', 'Repository', 'robj', 'AdobeConnect');
     parent::__construct($a_parent_obj, $a_parent_cmd);
     $this->setEnableNumInfo(true);
     $this->setTitle($a_parent_obj->pluginObj->txt("participants"));
     $this->addColumns();
     $this->addMultiCommands();
     $this->setSelectAllCheckbox('usr_id[]');
     $this->setShowRowsSelector(true);
     $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
     $this->setRowTemplate($a_parent_obj->pluginObj->getDirectory() . '/templates/default/tpl.xavc_active_user_row.html');
 }
开发者ID:HochschuleLuzern,项目名称:ILIAS_AdobeConnectPlugin,代码行数:28,代码来源:class.ilXAVCParticipantsTableGUI.php


注:本文中的ilPlugin::getPluginObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。