示例#1
0
文件: Error.php 项目: janpoem/kephp
 public function __construct($error = null)
 {
     parent::__construct();
     if (isset($error)) {
         $this->setError($error);
     }
 }
示例#2
0
文件: Web.php 项目: janpoem/kephp
 public function isRender()
 {
     if (empty($this->renderer)) {
         return false;
     }
     return $this->renderer->isRender();
 }
示例#3
0
 public function __construct(Uri $uri)
 {
     parent::__construct();
     $this->uri = $uri;
 }
示例#4
0
文件: View.php 项目: janpoem/kephp
 public function __construct(string $view = null, string $layout = null)
 {
     parent::__construct();
     $this->setView($view)->setLayout($layout);
 }