Behavior.class.php 880 B

123456789101112131415161718192021222324
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006-2014 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. namespace Think;
  12. /**
  13. * ThinkPHP Behavior基础类
  14. */
  15. abstract class Behavior {
  16. /**
  17. * 执行行为 run方法是Behavior唯一的接口
  18. * @access public
  19. * @param mixed $params 行为参数
  20. * @return void
  21. */
  22. abstract public function run(&$params);
  23. }