action.php
来自「a short sketch about linux syntex lines.」· PHP 代码 · 共 29 行
PHP
29 行
<?php
abstract class Easy_Controller_Action{
protected $translate;
public $_Request;
public $_View;
public function __construct($array = null){
$this->_Request = new Easy_Controller_Request();
if (is_null($array) == false){
foreach($array as $key=>$obj){
$this->$key = $obj;
}
}
$this->init();
}
public function init(){
}
public function __set($name, $value){
$this->$name = $value;
}
public function __get($name){
return $this->$name;
}
public function __call($method, $args){
if (method_exists($this, $method) === false){
exit(get_class().'调用了错误的类方法名:'.$method);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?