コード例 #1
0
ファイル: message.base.php プロジェクト: woolh/Online
 /**
  * 显示消息页面
  *
  * @author  wj
  * @return  void
  */
 function display()
 {
     $this->message = str_replace(ROOT_PATH, '', $this->message);
     if (defined('IS_AJAX') && IS_AJAX) {
         $error_line = empty($this->err_file[$this->err_line]) ? '' : "\n\nFile: {$this->err_file}[{$this->err_line}]";
         if ($this->icon == "notice") {
             $this->json_result('', $this->message . $error_line);
             return;
         } else {
             $this->json_error($this->message . $error_line);
             return;
         }
     } else {
         if ($this->redirect) {
             $this->redirect = str_replace('&', '&', $this->redirect);
             //$this->redirect 是给js使用的,不能包含&
         }
         $this->_config_seo('title', Lang::get('ecmall_sysmsg') . '-- Powered by ECMall');
         $this->assign('message', $this->message);
         $this->assign('links', $this->links);
         $this->assign('icon', $this->icon);
         $this->assign('err_line', $this->err_line);
         $this->assign('err_file', $this->err_file);
         $this->assign('redirect', $this->redirect);
         restore_error_handler();
         //错误提示时将错误捕捉关掉,以免display出错时出现死循环
         parent::display('message.html');
     }
 }
コード例 #2
0
ファイル: Message.php プロジェクト: GeneralCrime/code
 /**
  * Call the parent's constructor because the object name needs to be set.
  * <p/>
  * To create an instance of this object, just call
  * <code>
  * use APF\extensions\postbox\biz\Message;
  * $object = new Message();
  * </code>
  *
  * @param string $objectName The internal object name of the domain object.
  */
 public function __construct($objectName = null)
 {
     parent::__construct();
 }