• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP message_box类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了message_box类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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()
 {
     $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


示例3: 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


示例4: 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


示例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()
 {
     $this->_update_items_amount();
     $this->_update_items_notes();
     $cart =& cart::instance();
     if ($cart->count_items() == 0) {
         message_box::write_error(strings::get('no_items_in_cart', 'cart'));
         return new close_popup_response(RESPONSE_STATUS_FAILURE);
     }
     return new redirect_response(RESPONSE_STATUS_FORM_SUBMITTED, '/root/cart?action=checkout&popup=1');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:11,代码来源:send_cart_order_action.class.php


示例7: _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


示例8: _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


示例9: _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


示例10: _valid_perform

 function _valid_perform()
 {
     $mail_data = $this->dataspace->export();
     $body = sprintf(strings::get('body_template', 'feedback'), $mail_data['sender_name'], $mail_data['sender_email'], $mail_data['body']);
     $body = str_replace('<br>', "\n", $body);
     $subject = sprintf(strings::get('message_subject', 'feedback'), $mail_data['subject'], $_SERVER['HTTP_HOST']);
     $recipient_email = constant('ADMINISTRATOR_EMAIL');
     if (!$recipient_email || !send_plain_mail(array($recipient_email), $mail_data['sender_email'], $subject, $body)) {
         message_box::write_error(strings::get('mail_not_sent', 'feedback'));
         return false;
     }
     return true;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:13,代码来源:send_feedback_action.class.php


示例11: _create_object_operation

 function _create_object_operation()
 {
     if (isset($_FILES[$this->name]['tmp_name']['file'])) {
         if ($_FILES[$this->name]['size']['file'] > ini_get('upload_max_filesize') * 1024 * 1024) {
             message_box::write_warning('uploaded file size exceeds limit');
             return false;
         }
         $this->object->set_attribute('tmp_file_path', $_FILES[$this->name]['tmp_name']['file']);
         $this->object->set_attribute('file_name', $_FILES[$this->name]['name']['file']);
         $this->object->set_attribute('mime_type', $_FILES[$this->name]['type']['file']);
     }
     return parent::_create_object_operation();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:13,代码来源:create_file_action.class.php


示例12: run

  function run(&$filter_chain, &$request, &$response)
  {
    $filter_chain->next();

    if( $response->get_content_type() == 'text/html' &&
        $response->get_status() == 200)//only 200?
    {
      if (debug :: is_console_enabled())
        $response->write(debug :: parse_html_console());

      $response->write(message_box :: parse());//It definetly should be somewhere else!
    }
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:13,代码来源:response_processing_filter.class.php


示例13: _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


示例14: _valid_perform

 function _valid_perform()
 {
     $mail_data = $this->dataspace->export();
     $body = sprintf(strings::get('body_template', 'feedback'), $mail_data['sender_name'], $mail_data['sender_email'], $mail_data['body']);
     $body = str_replace('<br>', "\n", $body);
     $subject = sprintf(strings::get('message_subject', 'feedback'), $mail_data['subject'], $_SERVER['HTTP_HOST']);
     $recipient_email = $this->_get_email();
     if (!$recipient_email || !send_plain_mail(array($recipient_email), $mail_data['sender_email'], $subject, $body)) {
         message_box::write_error(strings::get('mail_not_sent', 'feedback'));
         return new failed_response();
     }
     message_box::write_error(strings::get('message_was_sent', 'feedback'));
     return new redirect_response(RESPONSE_STATUS_FORM_SUBMITTED, PHP_SELF);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:14,代码来源:send_feedback_action.class.php


示例15: _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


示例16: _valid_perform

 function _valid_perform()
 {
     //$html_body = $this->_get_mail_body('/cart/mail_template.html');
     $text_body = $this->_get_mail_body('/cart/mail_template.txt');
     $subject = sprintf(strings::get('message_subject', 'cart'), $_SERVER['HTTP_HOST']);
     $recipient_email = $this->_get_email();
     if (!send_plain_mail(array($recipient_email), $_SERVER['SERVER_ADMIN'] . '<' . $_SERVER['HTTP_HOST'] . '> ', $subject, $text_body)) {
         message_box::write_error(strings::get('mail_not_sent', 'cart'));
         return new close_popup_response(RESPONSE_STATUS_FAILURE);
     }
     $this->_clear_cart();
     message_box::write_error(strings::get('message_was_sent', 'cart'));
     return new close_popup_response(RESPONSE_STATUS_FORM_SUBMITTED);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:14,代码来源:checkout_cart_order_action.class.php


示例17: _update_object_operation

 function _update_object_operation(&$object)
 {
     if (isset($_FILES[$this->name]['tmp_name']['file'])) {
         if ($_FILES[$this->name]['size']['file'] > ini_get('upload_max_filesize') * 1024 * 1024) {
             message_box::write_warning('uploaded file size exceeds limit');
             return false;
         }
         $object_data =& fetch_mapped_by_url();
         $object->set_attribute('media_id', $object_data['media_id']);
         $object->set_attribute('tmp_file_path', $_FILES[$this->name]['tmp_name']['file']);
         $object->set_attribute('file_name', $_FILES[$this->name]['name']['file']);
         $object->set_attribute('mime_type', $_FILES[$this->name]['type']['file']);
     }
     return parent::_update_object_operation(&$object);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:15,代码来源:edit_file_action.class.php


示例18: _valid_perform

 function _valid_perform(&$request, &$response)
 {
     $this->_update_items_amount();
     $this->_update_items_notes();
     $cart =& cart::instance();
     if ($cart->count_items() == 0) {
         message_box::write_error(strings::get('no_items_in_cart', 'cart'));
         $request->set_status(REQUEST_STATUS_FAILURE);
         if ($request->has_attribute('popup')) {
             $response->write(close_popup_response($request));
         }
         return;
     }
     $request->set_status(REQUEST_STATUS_FORM_SUBMITTED);
     $response->redirect('/root/cart?action=checkout&popup=1');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:16,代码来源:send_cart_order_action.class.php


示例19: run

 function run()
 {
     $request =& request::instance();
     $response =& new http_response();
     $filter_chain =& new filter_chain($request, $response);
     $this->_register_filters($filter_chain);
     $filter_chain->process();
     if ($response->get_content_type() == 'text/html' && $response->get_status() == 200) {
         if (debug::is_console_enabled()) {
             $response->write(debug::parse_html_console());
         }
         $response->write(message_box::parse());
         //It definetly should be somewhere else!
     }
     $response->commit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:16,代码来源:limb_application.class.php


示例20: run

 function run()
 {
     $this->_inititiliaze_user_session();
     $request =& request::instance();
     $response =& new http_response();
     $filter_chain =& new filter_chain($request, $response);
     $this->_register_filters($filter_chain);
     $filter_chain->process();
     if (!$response->file_sent()) {
         if (debug::is_console_enabled()) {
             echo debug::parse_html_console();
         }
         echo message_box::parse();
         //It definetly should be somewhere else!
     }
     $response->commit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:17,代码来源:limb_application.class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP messages类代码示例发布时间:2022-05-23
下一篇:
PHP message类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap