本文整理匯總了PHP中MessageManager::delete_message_by_user_sender方法的典型用法代碼示例。如果您正苦於以下問題:PHP MessageManager::delete_message_by_user_sender方法的具體用法?PHP MessageManager::delete_message_by_user_sender怎麽用?PHP MessageManager::delete_message_by_user_sender使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MessageManager
的用法示例。
在下文中一共展示了MessageManager::delete_message_by_user_sender方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$delete_list_id = array();
if (isset($_POST['out'])) {
$delete_list_id = $_POST['out'];
}
if (isset($_POST['id'])) {
$delete_list_id = $_POST['id'];
}
for ($i = 0; $i < count($delete_list_id); $i++) {
MessageManager::delete_message_by_user_sender(api_get_user_id(), $delete_list_id[$i]);
}
$delete_list_id = array();
$social_right_content .= MessageManager::outbox_display();
} elseif ($action == 'deleteone') {
$delete_list_id = array();
$id = Security::remove_XSS($_GET['id']);
MessageManager::delete_message_by_user_sender(api_get_user_id(), $id);
$delete_list_id = array();
$social_right_content .= MessageManager::outbox_display();
} else {
$social_right_content .= MessageManager::outbox_display();
}
if (api_get_setting('allow_social_tool') == 'true') {
$social_right_content .= '</div>';
}
$app['title'] = get_lang('ComposeMessage');
$tpl = $app['template'];
if (api_get_setting('allow_social_tool') == 'true') {
$tpl->assign('social_left_content', $social_left_content);
$tpl->assign('social_left_menu', $social_left_menu);
$tpl->assign('social_right_content', $social_right_content);
$social_layout = $tpl->get_template('layout/social_layout.tpl');