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


PHP Messages::manager方法代码示例

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


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

示例1: messages

    /** ----------------------------------------
    /**  Private Messages
    /** ----------------------------------------*/

	function messages()
	{
		global $SESS, $IN;
		
		if (($SESS->userdata['can_send_private_messages'] != 'y' && $SESS->userdata['group_id'] != '1') OR $SESS->userdata['accept_messages'] != 'y')
		{
			return $this->profile_main();
		}
        
        if ( ! class_exists('Messages'))
		{
			require PATH_CORE.'core.messages'.EXT;
		}
		
		$MESS = new Messages;
		$MESS->base_url = $this->_member_path('messages');
		$MESS->allegiance = 'user';
		$MESS->theme_class = $this->theme_class;
		$MESS->request = $this->cur_id;
		$MESS->cur_id = $this->uri_extra;
		$MESS->manager();
		
		$this->page_title = $MESS->title;
		$this->head_extra = $MESS->header_javascript;
		return $MESS->return_data;
	}
开发者ID:jmelton,项目名称:eb,代码行数:30,代码来源:mod.member.php

示例2: messages

 /** -----------------------------------
     /**  Private Messages Manager
     /** -----------------------------------*/
 function messages()
 {
     global $SESS, $IN;
     $id = !$IN->GBL('id', 'GP') ? $SESS->userdata['member_id'] : $IN->GBL('id', 'GP');
     if ($id != $SESS->userdata['member_id']) {
         return false;
     }
     if (!class_exists('Messages')) {
         require PATH_CORE . 'core.messages' . EXT;
     }
     $MESS = new Messages();
     $MESS->manager();
     // If both the title and the crumb variables are empty, then
     // we have something that does not need to be put in the member
     // wrapper, like a popup.  So, we just return the return_date
     // variable and be done with it.
     if ($MESS->title != '' && $MESS->crumb != '') {
         return $this->account_wrapper($MESS->title, $MESS->crumb, $MESS->return_data);
     }
     return $MESS->return_data;
 }
开发者ID:jlleblanc,项目名称:ConnectBoom,代码行数:24,代码来源:cp.myaccount.php


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