當前位置: 首頁>>代碼示例>>PHP>>正文


PHP message_box::write_notice方法代碼示例

本文整理匯總了PHP中message_box::write_notice方法的典型用法代碼示例。如果您正苦於以下問題:PHP message_box::write_notice方法的具體用法?PHP message_box::write_notice怎麽用?PHP message_box::write_notice使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在message_box的用法示例。


在下文中一共展示了message_box::write_notice方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _valid_perform

 function _valid_perform()
 {
     $object =& wrap_with_site_object(fetch_mapped_by_url());
     if (!$object->delete()) {
         message_box::write_notice('Can not be deleted!');
         return new failed_response();
     }
     return new close_popup_response(RESPONSE_STATUS_FORM_SUBMITTED, RELOAD_SELF_URL, true);
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:9,代碼來源:form_delete_site_object_action.class.php

示例2: perform

 function perform(&$request, &$response)
 {
     $object =& site_object_factory::create('user_object');
     if (!$object->activate_password()) {
         message_box::write_notice('Password activation failed!');
         $request->set_status(REQUEST_STATUS_FAILED);
         $response->redirect('/');
     }
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:9,代碼來源:activate_password_action.class.php

示例3: perform

 function perform()
 {
     $object =& site_object_factory::create('user_object');
     if (!$object->activate_password()) {
         message_box::write_notice('Password activation failed!');
         reload('/');
     }
     return true;
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:9,代碼來源:activate_password_action.class.php

示例4: perform

 function perform()
 {
     $object =& site_object_factory::create('user_object');
     if (!$object->activate_password()) {
         message_box::write_notice('Password activation failed!');
         return new redirect_response(RESPONSE_STATUS_FAILED, '/');
     }
     return new response();
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:9,代碼來源:activate_password_action.class.php

示例5: _valid_perform

 function _valid_perform()
 {
     $object =& site_object_factory::create('poll_container');
     $data = $this->_export();
     if (!isset($data['answer'])) {
         message_box::write_notice(strings::get('no_answer', 'poll'));
         return false;
     }
     return $object->register_answer($data['answer']);
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:10,代碼來源:vote_action.class.php

示例6: _valid_perform

 function _valid_perform()
 {
     $object_data =& fetch_mapped_by_url();
     $object =& site_object_factory::create($this->definition['site_object']);
     $object->import_attributes($object_data);
     if (!$object->delete()) {
         message_box::write_notice('Can not be deleted!');
         return new failed_response();
     }
     $parent_object_data = fetch_one_by_node_id($object_data['parent_node_id']);
     return new close_popup_response(RESPONSE_STATUS_FORM_SUBMITTED, RELOAD_SELF_URL, true);
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:12,代碼來源:form_delete_site_object_action.class.php

示例7: _valid_perform

 function _valid_perform(&$request, &$response)
 {
     $object =& site_object_factory::create('poll_container');
     $data = $this->dataspace->export();
     $request->set_status(REQUEST_STATUS_FAILURE);
     if (!isset($data['answer'])) {
         message_box::write_notice(strings::get('no_answer', 'poll'));
         return;
     }
     $object->register_answer($data['answer']);
     $request->set_status(REQUEST_STATUS_FORM_SUBMITTED);
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:12,代碼來源:vote_action.class.php

示例8: _init_dataspace

 function _init_dataspace()
 {
     $object_data =& fetch_mapped_by_url();
     $object =& site_object_factory::create($this->definition['site_object']);
     $object->import_attributes($object_data);
     if ($object->can_delete()) {
         return true;
     } else {
         message_box::write_notice('Can not be deleted!');
         close_popup();
     }
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:12,代碼來源:form_delete_site_object_action.class.php

示例9: _valid_perform

 function _valid_perform(&$request, &$response)
 {
     $object =& wrap_with_site_object(fetch_requested_object());
     if (!$object->delete()) {
         message_box::write_notice(strings::get('cant_be_deleted', 'error'));
         $request->set_status(REQUEST_STATUS_FAILURE);
         return;
     }
     $request->set_status(REQUEST_STATUS_FORM_SUBMITTED);
     if ($request->has_attribute('popup')) {
         $response->write(close_popup_response($request, RELOAD_SELF_URL, true));
     }
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:13,代碼來源:form_delete_site_object_action.class.php

示例10: _valid_perform

 function _valid_perform()
 {
     $object =& site_object_factory::create('poll_container');
     $data = $this->dataspace->export();
     if (!isset($data['answer'])) {
         message_box::write_notice(strings::get('no_answer', 'poll'));
         return new failed_response();
     }
     if ($object->register_answer($data['answer'])) {
         return new redirect_response(RESPONSE_STATUS_FORM_SUBMITTED, '/root/polls');
     } else {
         return new failed_response();
     }
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:14,代碼來源:vote_action.class.php

示例11: instance

<?php	
/**********************************************************************************
* Copyright 2004 BIT, Ltd. http://www.0x00.ru, mailto: bit@0x00.ru
*
* Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
***********************************************************************************
*
* $Id$
*
***********************************************************************************/
require_once(LIMB_DIR . 'core/lib/session/session.class.php');
require_once(LIMB_DIR . 'core/model/chat/chat_user.class.php');
require_once(LIMB_DIR . 'core/request/response.class.php');
require_once(LIMB_DIR . 'core/lib/system/message_box.class.php');

start_user_session();

if($_POST['nickname'] && !chat_user :: login($_POST['nickname']))
	message_box :: write_notice('such name already exists');

$response =& response :: instance();
$response->redirect($_SERVER['HTTP_REFERER']);
$response->commit();
?>
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:24,代碼來源:login.php


注:本文中的message_box::write_notice方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。