当前位置: 首页>>代码示例>>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;未经允许,请勿转载。