當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。