當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Legacy_Utils::getModuleHandler方法代碼示例

本文整理匯總了PHP中Legacy_Utils::getModuleHandler方法的典型用法代碼示例。如果您正苦於以下問題:PHP Legacy_Utils::getModuleHandler方法的具體用法?PHP Legacy_Utils::getModuleHandler怎麽用?PHP Legacy_Utils::getModuleHandler使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Legacy_Utils的用法示例。


在下文中一共展示了Legacy_Utils::getModuleHandler方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: prepare

 /**
  * preprare
  * 
  * @param   void
  * 
  * @return  bool
  **/
 public function prepare()
 {
     $this->mPermit = Legacy_Utils::getModuleHandler('permit', $this->mAsset->mDirname)->create();
     //for Permissions
     $this->mPermit->set('cat_id', 0);
     $this->_setupActionForm();
 }
開發者ID:hiro1173,項目名稱:legacy,代碼行數:14,代碼來源:DefaultSetAction.class.php

示例2: prepare

 /**
  * prepare
  *
  * @param	void
  *
  * @return	bool
  **/
 public function prepare()
 {
     parent::prepare();
     $topic_id = (int) $this->mRoot->mContext->mRequest->getRequest('topic_id');
     $handler =& $this->mAsset->getObject('handler', 'Posts', false);
     //$handler = Legacy_Utils::getModuleHandler('posts', $this->mAsset->mDirname);
     $criteria = new criteriacompo();
     $criteria->add(new criteria('topic_id', $topic_id));
     $criteria->addSort('post_time', 'ASC');
     // TODO: other sorts
     $this->mPostsObj = $handler->getObjects($criteria);
     if (is_object($this->mObject)) {
         $this->forum_id = (int) $this->mObject->get('forum_id');
         $handler = Legacy_Utils::getModuleHandler('forums', $this->mAsset->mDirname);
         $this->mForumObj = $handler->get($this->forum_id);
         //adump($this->mForumObj);
         $this->ext_link_id = $this->mObject->get('topic_external_link_id');
         //adump($external_link_id);
         if ($this->ext_link_id > 0) {
             $mExtHandler =& $this->mAsset->getObject('handler', 'Topics', false);
             $criteria = new criteriacompo();
             $criteria->add(new criteria('topic_external_link_id', $this->ext_link_id));
             $this->mTopics_ExtObj = $mExtHandler->getObjects($criteria);
         }
         //adump($this->mTopics_ExtObj);
         return true;
     }
     return false;
 }
開發者ID:naao,項目名稱:xcforum_proto,代碼行數:36,代碼來源:TopicsViewAction.class.php

示例3: executeViewSuccess

 /**
  * executeViewInput
  * 
  * @param	XCube_RenderTarget	&$render
  * 
  * @return	void
  **/
 public function executeViewSuccess(&$render)
 {
     $render->setTemplateName('order_show.html');
     $render->setAttribute('dirname', $this->mAsset->mDirname);
     $render->setAttribute('definitions', Legacy_Utils::getModuleHandler('definition', $this->mAsset->mDirname)->getFields());
     $render->setAttribute('xcckConfigs', $this->mRoot->mContext->mModuleConfig);
 }
開發者ID:mambax7,項目名稱:xcck,代碼行數:14,代碼來源:OrderShowAction.class.php

示例4: loadLink

 /**
  * loadLink
  * 
  * @param	void
  * 
  * @return	void
  */
 public function loadLink()
 {
     if ($this->_mLinkLoadedFlag == false) {
         $handler = Legacy_Utils::getModuleHandler('link', $this->getDirname());
         $this->mLink =& $handler->get($this->get('link_id'));
         $this->_mLinkLoadedFlag = true;
     }
 }
開發者ID:kilica,項目名稱:playermap,代碼行數:15,代碼來源:Update.class.php

示例5: executeViewIndex

	/**
	 * @public
	 */
	function executeViewIndex(&$render)
	{
		$render->setTemplateName("profile_data_list.html");
		$render->setAttribute('objects', $this->mObjects);
		$render->setAttribute('pageNavi', $this->mFilter->mNavi);
		$handler = Legacy_Utils::getModuleHandler('definitions', 'profile');
		$render->setAttribute('definitions', $handler->getFields4DataShow(Legacy_Utils::getUid()));
	}
開發者ID:nunoluciano,項目名稱:uxcl,代碼行數:11,代碼來源:DataListAction.class.php

示例6: loadRpg

 /**
  * loadRpg
  * 
  * @param	void
  * 
  * @return	void
  */
 public function loadRpg()
 {
     if ($this->_mRpgLoadedFlag == false) {
         $handler = Legacy_Utils::getModuleHandler('rpg', TRPG_DIRNAME);
         $this->mRpg =& $handler->get($this->get('rpg_id'));
         $this->_mRpgLoadedFlag = true;
     }
 }
開發者ID:kilica,項目名稱:playermap,代碼行數:15,代碼來源:Lrpg.class.php

示例7: getDataIdListByTags

 /**
  * getDataIdListByTags
  *
  * @param int[]		$list
  * @param string	$tDirname	//Legacy_Tag module's dirname
  * @param string[]	$tagArr
  * @param string	$dirname
  * @param string	$dataname
  */
 public static function getDataIdListByTags(&$list, $tDirname, $tagArr, $dirname, $dataname)
 {
     if (count($tagArr) === 0) {
         return;
     }
     $handler = Legacy_Utils::getModuleHandler('tag', $tDirname);
     $list = $handler->getDataIdListByTags($tagArr, $dirname, $dataname);
 }
開發者ID:mambax7,項目名稱:letag,代碼行數:17,代碼來源:TagDelegateFunctions.class.php

示例8: loadGroup

 /**
  * loadGroup
  * 
  * @param	void
  * 
  * @return	void
  */
 public function loadGroup()
 {
     if ($this->_mGroupLoadedFlag == false) {
         $handler = Legacy_Utils::getModuleHandler('group', $this->getDirname());
         $this->mGroup =& $handler->get($this->get('group_id'));
         $this->_mGroupLoadedFlag = true;
     }
 }
開發者ID:mambax7,項目名稱:legroup,代碼行數:15,代碼來源:Policy.class.php

示例9: prepare

 /**
  * prepare
  * 
  * @param    void
  * 
  * @return    bool
  **/
 public function prepare()
 {
     parent::prepare();
     if (!($this->mGroup = Legacy_Utils::getModuleHandler('group', $this->mAsset->mDirname)->get($this->_getGroupId()))) {
         $this->mRoot->mController->executeRedirect($this->_getNextUri('group'), 1, _MD_LEGROUP_ERROR_INVALID_GROUP);
     }
     return true;
 }
開發者ID:mambax7,項目名稱:legroup,代碼行數:15,代碼來源:MemberListAction.class.php

示例10: _setupObject

 /**
  * _setupObject
  *
  * @param	void
  *
  * @return	void
  **/
 protected function _setupObject()
 {
     $id = $this->_getId();
     $this->mObjectHandler =& $this->_getHandler();
     $revisionHandler = Legacy_Utils::getModuleHandler('revision', $this->mAsset->mDirname);
     $revision = $revisionHandler->getLatestRevision($id, Lenum_Status::REJECTED);
     $this->mObject = Xcck_Utils::setupPageByRevision($revision);
 }
開發者ID:mambax7,項目名稱:xcck,代碼行數:15,代碼來源:RevisionViewAction.class.php

示例11: loadFriend

 /**
  * loadFriend
  * 
  * @param	void
  * 
  * @return	void
  */
 public function loadFriend()
 {
     if ($this->_mFriendLoadedFlag == false) {
         $handler = Legacy_Utils::getModuleHandler('player', $this->getDirname());
         $this->mFriend =& $handler->get($this->get('conne_uid'));
         $this->_mFriendLoadedFlag = true;
     }
 }
開發者ID:kilica,項目名稱:playermap,代碼行數:15,代碼來源:Conne.class.php

示例12: executeViewInput

 /**
  * executeViewInput
  * 
  * @param	XCube_RenderTarget	&$render
  * 
  * @return	void
  **/
 public function executeViewInput(&$render)
 {
     $render->setTemplateName($this->mAsset->mDirname . '_conv_edit.html');
     $render->setAttribute('actionForm', $this->mActionForm);
     $render->setAttribute('object', $this->mObject);
     $render->setAttribute('Pref_idTree', $this->mCategoryManager['pref_id']->getTree(Playermap_CategoryManager::VIEW));
     $myGroupIds = Legacy_Utils::getModuleHandler('member', $this->mAsset->mDirname)->getMyGroupIdList();
     $render->setAttribute('myGroups', Legacy_Utils::getModuleHandler('group', $this->mAsset->mDirname)->getGroupListByIds($myGroupIds));
 }
開發者ID:kilica,項目名稱:playermap,代碼行數:16,代碼來源:ConvEditAction.class.php

示例13: getImageObjects

 /**
  * getImageObjects
  *
  * @param Legacy_AbstractImageObject[]	&$objects
  * @param string	$dirname
  * @param string	$dataname
  * @param int		$dataId
  * @param int		$num
  * @param int		$limit
  * @param int		$start
  *
  * @return	void
  */
 public static function getImageObjects(&$objects, $dirname, $dataname, $dataId = 0, $num = 0, $limit = 10, $start = 0)
 {
     XCube_Root::getSingleton()->mLanguageManager->loadModuleMessageCatalog(LEGACY_IMAGE_DIRNAME);
     $handler = Legacy_Utils::getModuleHandler('image', LEGACY_IMAGE_DIRNAME);
     $images = $handler->getImageObjects($dirname, $dataname, $dataId, $num, $limit, $start);
     foreach ($images as $image) {
         $objects[$image->getShow('num')] = $image;
     }
 }
開發者ID:mambax7,項目名稱:leimg,代碼行數:22,代碼來源:ImageDelegateFunctions.class.php

示例14: Profile_DataObject

 /**
  * @public
  */
 public function Profile_DataObject()
 {
     $handler = Legacy_Utils::getModuleHandler('definitions', 'profile');
     $this->mDef = $handler->getDefinitions(false);
     $this->initVar('uid', XOBJ_DTYPE_INT, '', false);
     foreach (array_keys($this->mDef) as $key) {
         $this->mDef[$key]->mFieldType->setInitVar($this, $this->mDef[$key]->getShow('field_name'), $this->mDef[$key]->getDefault());
     }
 }
開發者ID:hiro1173,項目名稱:legacy,代碼行數:12,代碼來源:Data.class.php

示例15: _getCategoryFields

 /**
  * _getCategoryFields
  * 
  * @param   void
  * 
  * @return  int[]
  **/
 protected function _getCategoryFields()
 {
     $catObjs = Legacy_Utils::getModuleHandler('definition', $this->mAsset->mDirname)->getObjects(new Criteria('field_type', Xcck_FieldType::CATEGORY));
     foreach ($catObjs as $cat) {
         if (!$cat->get('options')) {
             unset($cat);
         }
     }
     return $catObjs;
 }
開發者ID:mambax7,項目名稱:xcck,代碼行數:17,代碼來源:AbstractAction.class.php


注:本文中的Legacy_Utils::getModuleHandler方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。