• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP XCube_DelegateUtils类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中XCube_DelegateUtils的典型用法代码示例。如果您正苦于以下问题:PHP XCube_DelegateUtils类的具体用法?PHP XCube_DelegateUtils怎么用?PHP XCube_DelegateUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: smarty_function_legacy_tag_select

function smarty_function_legacy_tag_select($params, &$smarty)
{
	$tDirname = $params['tDirname'];
	$dirname = isset($params['dirname']) ? $params['dirname'] : null;
	$dataname = isset($params['dataname']) ? $params['dataname'] : null;
	$uidList = isset($params['uidList']) ? $params['uidList'] : null;
	$tags = isset($params['tags']) ? $params['tags'] : null;	//selected tags
	$template = isset($params['template']) ? $params['template'] : 'legacy_inc_tag_select.html';
	$cloud = array();

	XCube_DelegateUtils::call('Legacy_Tag.'.$tDirname.'.GetTagCloudSrc',
		new XCube_Ref($cloud),
		$tDirname,
		$dirname,
		$dataname,
		$uidList
	);

	//render template
	$render = new XCube_RenderTarget();
	$render->setTemplateName($template);
	$render->setAttribute('legacy_buffertype',XCUBE_RENDER_TARGET_TYPE_MAIN);
	$render->setAttribute('cloud', $cloud);
	$render->setAttribute('tags', $tags);
	XCube_Root::getSingleton()->getRenderSystem('Legacy_RenderSystem')->render($render);

	echo $render->getResult();
}
开发者ID:nunoluciano,项目名称:uxcl,代码行数:28,代码来源:function.legacy_tag_select.php


示例2: getDefaultView

 function getDefaultView(&$controller, &$xoopsUser)
 {
     if (!isset($_REQUEST['actkey']) || !$this->mObject) {
         $controller->executeForward(XOOPS_URL . '/');
     }
     if ($this->mObject->get('actkey') != xoops_getrequest('actkey')) {
         $controller->executeRedirect(XOOPS_URL . '/', 3, _MD_USER_MESSAGE_ACTKEYNOT);
     }
     if ($this->mObject->get('level') > 0) {
         $controller->executeRedirect(XOOPS_URL . '/user.php', 3, _MD_USER_MESSAGE_ACONTACT);
     }
     $this->mObject->set('level', '1');
     //
     // Force update with GET request
     //
     $this->mObjectHandler->insert($this->mObject, true);
     if ($this->mConfig['activation_type'] == 2) {
         $builder = new User_RegistAdminCommitMailBuilder();
         $director = new User_UserRegistMailDirector($builder, $this->mObject, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig);
         $director->contruct();
         $mailer =& $builder->getResult();
         XCube_DelegateUtils::call('Legacy.Event.RegistUser.SendMail', new XCube_Ref($mailer), 'Activated');
         if ($mailer->send()) {
             $controller->executeRedirect(XOOPS_URL . '/', 5, sprintf(_MD_USER_MESSAGE_ACTVMAILOK, $this->mObject->get('uname')));
         } else {
             $controller->executeRedirect(XOOPS_URL . '/', 5, sprintf(_MD_USER_MESSAGE_ACTVMAILNG, $this->mObject->get('uname')));
         }
     } else {
         $controller->executeRedirect(XOOPS_URL . '/user.php', 5, _MD_USER_MESSAGE_ACTLOGIN);
     }
 }
开发者ID:hiro1173,项目名称:legacy,代码行数:31,代码来源:UserActivateAction.class.php


示例3: resign

 function resign(&$flag, &$controller, &$xoopsUser)
 {
     $handler =& xoops_gethandler('member');
     $groups = $handler->getGroupsByUser($xoopsUser->get('uid'));
     foreach ($groups as $group) {
         $handler->removeUserFromGroup($group, $xoopsUser->get('uid'));
     }
     $handler->addUserToGroup(RESIGN_USER_GROUP_ID, $xoopsUser->get('uid'));
     xoops_notification_deletebyuser($xoopsUser->get('uid'));
     XCube_DelegateUtils::call('Legacy.Event.UserDelete', new XCube_Ref($xoopsUser));
     $flag = true;
     $root =& XCube_Root::getSingleton();
     // Reset session
     $_SESSION = array();
     $root->mSession->destroy(true);
     // reset online
     $handler =& xoops_gethandler('online');
     $handler->destroy($xoopsUser->get('uid'));
     xoops_notification_deletebyuser($xoopsUser->get('uid'));
     // Redirect not to call behind delegates.
     $langMgr =& $root->getLanguageManager();
     $langMgr->loadPageTypeMessageCatalog('user');
     $controller =& $root->getController();
     $controller->executeRedirect(XOOPS_URL, 3, _US_BEENDELED);
 }
开发者ID:hiro1173,项目名称:legacy,代码行数:25,代码来源:ResignUserControl.class.php


示例4: smarty_function_legacy_comment

function smarty_function_legacy_comment($params, &$smarty)
{
	$cDirname = $params['cDirname'];
	$dirname = isset($params['dirname']) ? $params['dirname'] : null;
	$dataname = isset($params['dataname']) ? $params['dataname'] : null;
	$dataId = isset($params['data_id']) ? $params['data_id'] : 0;
	$categoryId = isset($params['category_id']) ? $params['category_id'] : 0;
	$comments = null;

	XCube_DelegateUtils::call('Legacy_Comment.'.$cDirname.'.GetComments',
		new XCube_Ref($comments),
		$cDirname,
		$dirname,
		$dataname,
		$dataId,
		$categoryId,
		$params
	);

	$template = isset($params['template']) ? $params['template'] : $comments['template'];

	//render template
	$render = new XCube_RenderTarget();
	$render->setTemplateName($template);
	$render->setAttribute('legacy_buffertype',XCUBE_RENDER_TARGET_TYPE_MAIN);
	$render->setAttribute('comments', $comments);
	XCube_Root::getSingleton()->getRenderSystem('Legacy_RenderSystem')->render($render);

	echo $render->getResult();
}
开发者ID:nunoluciano,项目名称:uxcl,代码行数:30,代码来源:function.legacy_comment.php


示例5: smarty_function_legacy_map_edit

function smarty_function_legacy_map_edit($params, &$smarty)
{
    $dirname = isset($params['dirname']) ? $params['dirname'] : null;
    $dataname = isset($params['dataname']) ? $params['dataname'] : null;
    $dataId = isset($params['data_id']) ? $params['data_id'] : null;
    $addressId = isset($params['geocode']) ? $params['geocode'] : null;
    $template = isset($params['template']) ? $params['template'] : 'legacy_inc_map_edit.html';
    $places = array();
    XCube_DelegateUtils::call('Legacy_Map.GetPlaces', new XCube_Ref($places), $dirname, $dataname, $dataId);
    $root = XCube_Root::getSingleton();
    $latitude = $root->mContext->mRequest->getRequest('latitude');
    $longitude = $root->mContext->mRequest->getRequest('longitude');
    $request = null;
    if (isset($latitude) && isset($longitude)) {
        $request = array('latitude' => $latitude, 'longitude' => $longitude, 'zoom' => 10);
    }
    //render template
    $render = new XCube_RenderTarget();
    $render->setTemplateName($template);
    $render->setAttribute('legacy_buffertype', XCUBE_RENDER_TARGET_TYPE_MAIN);
    $render->setAttribute('places', $places);
    $render->setAttribute('geocode', $geocode);
    $render->setAttribute('request', $request);
    XCube_Root::getSingleton()->getRenderSystem('Legacy_RenderSystem')->render($render);
    echo $render->getResult();
}
开发者ID:mambax7,项目名称:xcck,代码行数:26,代码来源:function.legacy_map_edit.php


示例6: execute

 function execute(&$controller, &$xoopsUser)
 {
     if (XCube_Root::getSingleton()->mContext->mRequest->getRequest('_form_control_cancel') != null) {
         return USER_FRAME_VIEW_CANCEL;
     }
     $memberHandler =& xoops_gethandler('member');
     $this->mNewUser =& $memberHandler->createUser();
     $this->mRegistForm->update($this->mNewUser);
     $this->mNewUser->set('uorder', $controller->mRoot->mContext->getXoopsConfig('com_order'), true);
     $this->mNewUser->set('umode', $controller->mRoot->mContext->getXoopsConfig('com_mode'), true);
     if ($this->mConfig['activation_type'] == 1) {
         $this->mNewUser->set('level', 1, true);
     }
     if (!$memberHandler->insertUser($this->mNewUser)) {
         $this->mRedirectMessage = _MD_USER_LANG_REGISTERNG;
         return USER_FRAME_VIEW_ERROR;
     }
     if (!$memberHandler->addUserToGroup(XOOPS_GROUP_USERS, $this->mNewUser->get('uid'))) {
         $this->mRedirectMessage = _MD_USER_LANG_REGISTERNG;
         return USER_FRAME_VIEW_ERROR;
     }
     $this->_clearRegistForm($controller);
     $this->_processMail($controller);
     $this->_eventNotifyMail($controller);
     XCube_DelegateUtils::call('Legacy.Event.RegistUser.Success', new XCube_Ref($this->mNewUser));
     return USER_FRAME_VIEW_SUCCESS;
 }
开发者ID:nouphet,项目名称:rata,代码行数:27,代码来源:UserRegister_confirmAction.class.php


示例7: smarty_function_legacy_tag_cloud

function smarty_function_legacy_tag_cloud($params, &$smarty)
{
	$tDirname = $params['tDirname'];
	$dirname = isset($params['dirname']) ? $params['dirname'] : null;
	$dataname = isset($params['dataname']) ? $params['dataname'] : null;
	$uidList = isset($params['uidList']) ? $params['uidList'] : null;
	$max = isset($params['max']) ? $params['max'] : 200;	//font size(%)
	$min = isset($params['min']) ? $params['min'] : 80;	//font size(%)
	$template = isset($params['template']) ? $params['template'] : 'legacy_inc_tag_cloud.html';
	$cloud = array();

	XCube_DelegateUtils::call('Legacy_Tag.'.$tDirname.'.GetTagCloudSrc',
		new XCube_Ref($cloud),
		$tDirname,
		$dirname,
		$dataname,
		$uidList
	);

	$sizeArr = _smarty_function_legacy_tag_cloud_get_size($cloud, $max, $min);

	//render template
	$render = new XCube_RenderTarget();
	$render->setTemplateName($template);
	$render->setAttribute('legacy_buffertype',XCUBE_RENDER_TARGET_TYPE_MAIN);
	$render->setAttribute('dirname', $tDirname);
	$render->setAttribute('cloud', $cloud);
	$render->setAttribute('sizeArr', $sizeArr);
	XCube_Root::getSingleton()->getRenderSystem('Legacy_RenderSystem')->render($render);

	echo $render->getResult();
}
开发者ID:nunoluciano,项目名称:uxcl,代码行数:32,代码来源:function.legacy_tag_cloud.php


示例8: b_legacy_waiting_show

function b_legacy_waiting_show()
{
    $modules = array();
    XCube_DelegateUtils::call('Legacyblock.Waiting.Show', new XCube_Ref($modules));
    $block['modules'] = $modules;
    return $block;
}
开发者ID:nouphet,项目名称:rata,代码行数:7,代码来源:legacy_waiting.php


示例9: XCube_Ref

 /**
  * &getPlayermapHandler
  * 
  * @param	string	$name
  * @param	string	$dirname
  * 
  * @return	XoopsObjectHandleer
  **/
 public static function &getPlayermapHandler($name, $dirname)
 {
     $asset = null;
     XCube_DelegateUtils::call('Module.playermap.Global.Event.GetAssetManager', new XCube_Ref($asset), $dirname);
     if (is_object($asset) && is_a($asset, 'Playermap_AssetManager')) {
         return $asset->getObject('handler', $name);
     }
 }
开发者ID:kilica,项目名称:playermap,代码行数:16,代码来源:PlayermapUtils.class.php


示例10: getTemplateName

 function getTemplateName()
 {
     $template_name = $this->template_name;
     // calling a delegate for replacing the main template
     if (class_exists('XCube_DelegateUtils')) {
         XCube_DelegateUtils::raiseEvent('ModuleClass.Pico.Controller.GetTemplateName', $this->mydirname, new XCube_Ref($template_name));
     }
     return $template_name;
 }
开发者ID:nouphet,项目名称:rata,代码行数:9,代码来源:PicoControllerAbstract.class.php


示例11: execute

 function execute($request)
 {
     // Ticket Check
     if (!$GLOBALS['xoopsGTicket']->check(true, 'pico')) {
         redirect_header(XOOPS_URL . '/', 3, $GLOBALS['xoopsGTicket']->getErrors());
     }
     parent::execute($request);
     // initialize
     $cat_data = $this->currentCategoryObj->getData();
     $picoPermission =& PicoPermission::getInstance();
     // permission check
     if (empty($cat_data['can_post'])) {
         redirect_header(XOOPS_URL . '/', 2, _MD_PICO_ERR_MAKECONTENT);
     }
     // insert a content
     $content_id = pico_makecontent($this->mydirname);
     $content_uri4html = XOOPS_URL . "/modules/{$this->mydirname}/" . pico_common_make_content_link4html($this->mod_config, $content_id, $this->mydirname);
     // get contentObj
     $this->contentObj =& new PicoContent($this->mydirname, $content_id, $this->currentCategoryObj);
     $content_data = $this->contentObj->getData();
     // return uri
     if (!empty($_GET['ret']) && ($ret_uri = pico_main_parse_ret2uri($this->mydirname, $_GET['ret']))) {
         $ret_uri4html = htmlspecialchars($ret_uri, ENT_QUOTES);
     } else {
         $ret_uri4html = $content_uri4html;
     }
     // calling a delegate
     if (class_exists('XCube_DelegateUtils')) {
         XCube_DelegateUtils::raiseEvent('ModuleClass.Pico.Contentman.InsertSuccess', $this->mydirname, $content_id, $cat_data, $ret_uri4html);
     }
     // create extra_tags for notifications
     $extra_tags = array('CONTENT_URL' => pico_common_unhtmlspecialchars($content_uri4html), 'APPROVAL_URL' => XOOPS_URL . "/modules/{$this->mydirname}/index.php?page=contentmanager&content_id={$content_id}", 'CAT_TITLE' => $cat_data['cat_title'], 'CONTENT_SUBJECT' => $content_data['subject_raw']);
     // users2notify (can_readfull only)
     $users2notify = $picoPermission->getUidsFromCatid($this->mydirname, $cat_data['id'], 'can_readfull');
     if ($cat_data['post_auto_approved']) {
         // Notify for new content 'global'
         pico_main_trigger_event($this->mydirname, 'global', 0, 'newcontent', $extra_tags, $users2notify, 0);
         // Notify for new content 'category' of all parental categories
         foreach (array_keys($cat_data['paths_raw']) as $cat_id) {
             pico_main_trigger_event($this->mydirname, 'category', $cat_id, 'newcontent', $extra_tags, $users2notify, 0);
         }
         // message "registered"
         redirect_header($ret_uri4html, 2, _MD_PICO_MSG_CONTENTMADE);
     } else {
         // Notify for new waiting content (only for admin or mod)
         $users2notify = pico_main_get_moderators($this->mydirname, $cat_data['id']);
         if (empty($users2notify)) {
             $users2notify = array(0);
         }
         pico_main_trigger_event($this->mydirname, 'global', 0, 'waitingcontent', $extra_tags, $users2notify);
         // message "waiting approval"
         redirect_header($ret_uri4html, 2, _MD_PICO_MSG_CONTENTWAITINGREGISTER);
     }
     // view
     $this->is_need_header_footer = false;
 }
开发者ID:BackupTheBerlios,项目名称:peakxoops-svn,代码行数:56,代码来源:PicoControllerInsertContent.class.php


示例12: executeViewInput

 /**
  * executeViewInput
  * 
  * @param    XCube_RenderTarget    &$render
  * 
  * @return    void
  **/
 public function executeViewInput(&$render)
 {
     $render->setTemplateName($this->mAsset->mDirname . '_group_delete.html');
     $render->setAttribute('actionForm', $this->mActionForm);
     $render->setAttribute('object', $this->mObject);
     //breadcrumb
     $breadcrumbs = array();
     XCube_DelegateUtils::call('Module.' . $this->mAsset->mDirname . '.Global.Event.GetBreadcrumbs', new XCube_Ref($breadcrumbs), $this->mAsset->mDirname, $this->mObject);
     $render->setAttribute('xoops_breadcrumbs', $breadcrumbs);
 }
开发者ID:mambax7,项目名称:legroup,代码行数:17,代码来源:GroupDeleteAction.class.php


示例13: getClientList

 /**
  * getClientList
  * 
  * @param   string  $dirname
  * 
  * @return  array
  **/
 public static function getClientList($dirname)
 {
     $clients = array();
     $list = array();
     XCube_DelegateUtils::call('Legacy_GroupClient.GetClientList', new XCube_Ref($clients), $dirname);
     foreach ($clients as $module) {
         $list[] = array('dirname' => trim($module['dirname']), 'dataname' => trim($module['dataname']), 'fieldname' => trim($module['fieldname']));
     }
     return $list;
 }
开发者ID:mambax7,项目名称:legroup,代码行数:17,代码来源:LegroupUtils.class.php


示例14: addOGPTagsToTheme

 /**
  * Add OGP tags to theme
  * @param Legacy_XoopsTpl $xoopsTpl
  * @return void
  */
 public function addOGPTagsToTheme(Legacy_XoopsTpl $xoopsTpl)
 {
     if ($this->_isBeginRenderTheme() === false) {
         return;
     }
     $ogpData = array();
     XCube_DelegateUtils::raiseEvent('OGP.SetUp', new XCube_Ref($ogpData), new XCube_Ref($xoopsTpl));
     $ogpTags = $this->_renderOGPTags($ogpData);
     $this->_prependToXoopsModuleHeader($xoopsTpl, $ogpTags);
 }
开发者ID:nouphet,项目名称:xoopscube-preloads,代码行数:15,代码来源:OpenGraphProtocolPlugin.class.php


示例15: _getProfile

 /**
  * @param string $key
  * @return mixed
  */
 protected function _getProfile($key)
 {
     if ($this->profile === null) {
         XCube_DelegateUtils::call('Legacy_Profile.GetProfile', new XCube_Ref($this->profile), $this->get('uid'));
     }
     if ($this->profile instanceof XoopsSimpleObject) {
         return $this->profile->get($key);
     }
     return null;
 }
开发者ID:nouphet,项目名称:xoopsmembers,代码行数:14,代码来源:UserGroup.class.php


示例16: execute

 function execute($request)
 {
     // Ticket Check
     if (!$GLOBALS['xoopsGTicket']->check(true, 'pico')) {
         redirect_header(XOOPS_URL . '/', 3, $GLOBALS['xoopsGTicket']->getErrors());
     }
     parent::execute($request);
     // contentObj
     $cat_data = $this->currentCategoryObj->getData();
     $this->contentObj =& new PicoContent($this->mydirname, $request['content_id'], $this->currentCategoryObj);
     // check existence
     if ($this->contentObj->isError()) {
         redirect_header(XOOPS_URL . "/modules/{$this->mydirname}/index.php", 2, _MD_PICO_ERR_READCONTENT);
         exit;
     }
     $content_data = $this->contentObj->getData();
     // permission check
     if (empty($content_data['can_edit'])) {
         if ($content_data['locked']) {
             redirect_header(XOOPS_URL . '/', 2, _MD_PICO_ERR_LOCKEDCONTENT);
             exit;
         } else {
             redirect_header(XOOPS_URL . '/', 2, _MD_PICO_ERR_EDITCONTENT);
             exit;
         }
     }
     // update the content
     pico_updatecontent($this->mydirname, $request['content_id'], $cat_data['post_auto_approved'], $cat_data['isadminormod']);
     $content_uri4html = XOOPS_URL . "/modules/{$this->mydirname}/" . pico_common_make_content_link4html($this->mod_config, $request['content_id'], $this->mydirname);
     // return uri
     if (!empty($_GET['ret']) && ($ret_uri = pico_main_parse_ret2uri($this->mydirname, $_GET['ret']))) {
         $ret_uri4html = htmlspecialchars($ret_uri, ENT_QUOTES);
     } else {
         $ret_uri4html = $content_uri4html;
     }
     // calling a delegate
     if (class_exists('XCube_DelegateUtils')) {
         XCube_DelegateUtils::raiseEvent('ModuleClass.Pico.Contentman.UpdateSuccess', $this->mydirname, $request['content_id'], $cat_data, $ret_uri4html);
     }
     if ($cat_data['post_auto_approved']) {
         // message "modified"
         redirect_header($ret_uri4html, 2, _MD_PICO_MSG_CONTENTUPDATED);
     } else {
         // Notify for new waiting content (only for admin or mod)
         $users2notify = pico_main_get_moderators($this->mydirname, $cat_data['id']);
         if (empty($users2notify)) {
             $users2notify = array(0);
         }
         pico_main_trigger_event($this->mydirname, 'global', 0, 'waitingcontent', array('CONTENT_URL' => XOOPS_URL . "/modules/{$this->mydirname}/index.php?page=contentmanager&content_id=" . $request['content_id']), $users2notify);
         // message "waiting approval"
         redirect_header($ret_uri4html, 2, _MD_PICO_MSG_CONTENTWAITINGUPDATE);
     }
     // view
     $this->is_need_header_footer = false;
 }
开发者ID:BackupTheBerlios,项目名称:peakxoops-svn,代码行数:55,代码来源:PicoControllerUpdateContent.class.php


示例17: smarty_function_xoops_explaceholder

function smarty_function_xoops_explaceholder($params, &$smarty)
{
    $buf = null;
    if (isset($params['control'])) {
        XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get.' . $params['control'], new XCube_Ref($buf), $params);
        if ($buf === null) {
            XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get', new XCube_Ref($buf), $params['control'], $params);
        }
    }
    return $buf;
}
开发者ID:nouphet,项目名称:rata,代码行数:11,代码来源:function.xoops_explaceholder.php


示例18: _doExecute

 function _doExecute()
 {
     XCube_DelegateUtils::call('Legacy.Admin.Event.UserDelete', new XCube_Ref($this->mObject));
     $handler =& xoops_gethandler('member');
     if ($handler->delete($this->mObject)) {
         XCube_DelegateUtils::call('Legacy.Admin.Event.UserDelete.Success', new XCube_Ref($this->mObject));
         return USER_FRAME_VIEW_SUCCESS;
     } else {
         XCube_DelegateUtils::call('Legacy.Admin.Event.UserDelete.Fail', new XCube_Ref($this->mObject));
         return USER_FRAME_VIEW_ERROR;
     }
 }
开发者ID:hiro1173,项目名称:legacy,代码行数:12,代码来源:UserDeleteAction.class.php


示例19: executeViewIndex

 /**
  * executeViewIndex
  * 
  * @param    XCube_RenderTarget    &$render
  * 
  * @return    void
  **/
 public function executeViewIndex(&$render)
 {
     $render->setTemplateName($this->mAsset->mDirname . '_group_list.html');
     $render->setAttribute('objects', $this->mObjects);
     $render->setAttribute('dirname', $this->mAsset->mDirname);
     $render->setAttribute('dataname', 'group');
     $render->setAttribute('pageNavi', $this->mFilter->mNavi);
     //breadcrumb
     $breadcrumbs = array();
     XCube_DelegateUtils::call('Module.' . $this->mAsset->mDirname . '.Global.Event.GetBreadcrumbs', new XCube_Ref($breadcrumbs), $this->mAsset->mDirname);
     $render->setAttribute('xoops_breadcrumbs', $breadcrumbs);
 }
开发者ID:mambax7,项目名称:legroup,代码行数:19,代码来源:GroupMylistAction.class.php


示例20: prepare

 /**
  * prepare
  * 
  * @param   XCube_Controller  &$controller
  * 
  * @return  void
  **/
 public function prepare(&$controller)
 {
     $this->mController =& $controller;
     $this->mSmarty = new Legacy_AdminSmarty();
     // TODO will be use other class?
     $this->mSmarty->register_modifier('theme', array($this, 'modifierTheme'));
     $this->mSmarty->register_function('stylesheet', array($this, 'functionStylesheet'));
     $this->mSmarty->assign(array('xoops_url' => XOOPS_URL, 'xoops_rootpath' => XOOPS_ROOT_PATH, 'xoops_langcode' => _LANGCODE, 'xoops_charset' => _CHARSET, 'xoops_version' => XOOPS_VERSION, 'xoops_upload_url' => XOOPS_UPLOAD_URL));
     // TODO event name is this?
     XCube_DelegateUtils::call('Legacy_RenderSystem.SetupXoopsTpl', new XCube_Ref($this->mSmarty));
     $this->mSmarty->force_compile = $controller->mRoot->mSiteConfig['Legacy_AdminRenderSystem']['ThemeDevelopmentMode'] || $controller->mRoot->mContext->getXoopsConfig('theme_fromfile');
 }
开发者ID:kilica,项目名称:playermap,代码行数:19,代码来源:RpglinkAdminRenderSystem.class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP XCube_Root类代码示例发布时间:2022-05-23
下一篇:
PHP X2Widget类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap