1
0

Chajian.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. *****************************************************************
  4. * 联系QQ: 290802026/1073744729 *
  5. * 版 本: V2.0 *
  6. * 开发者:雨中磐石工作室 *
  7. * 邮 箱: qqqq2900@126.com *
  8. * 网 址: http://www.rockoa.com/ *
  9. * 说 明: 插件主类 *
  10. * 备 注: 未经允许不得商业出售,代码欢迎参考纠正 *
  11. * 创建时间: 2014-08-30 *
  12. *****************************************************************
  13. */
  14. abstract class Chajian{
  15. public $rock;
  16. public $db;
  17. public $adminname;
  18. public $adminid;
  19. public function __construct()
  20. {
  21. $this->rock = $GLOBALS['rock'];
  22. $this->db = $GLOBALS['db'];
  23. $this->adminid = $this->rock->adminid;
  24. $this->adminname = $this->rock->adminname;
  25. $this->initChajian();
  26. }
  27. public function __destruct()
  28. {
  29. $this->destChajian();
  30. }
  31. public function isempt($str)
  32. {
  33. return $this->rock->isempt($str);
  34. }
  35. public function contain($str, $s1)
  36. {
  37. return $this->rock->contain($str, $s1);
  38. }
  39. protected function initChajian(){}
  40. protected function destChajian(){}
  41. }
粤ICP备19079148号