Action.class.php 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. /**
  12. * ThinkPHP AMF模式Action控制器基类
  13. */
  14. abstract class Action {
  15. /**
  16. * 魔术方法 有不存在的操作的时候执行
  17. * @access public
  18. * @param string $method 方法名
  19. * @param array $parms 参数
  20. * @return mixed
  21. */
  22. public function __call($method,$parms) {
  23. // 如果定义了_empty操作 则调用
  24. if(method_exists($this,'_empty')) {
  25. $this->_empty($method,$parms);
  26. }
  27. }
  28. }