本文整理汇总了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;
}
示例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;
}