block_doingnew.php 887 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: block_doingnew.php 25525 2011-11-14 04:39:11Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_doing', 'class/block/space');
  12. class block_doingnew extends block_doing {
  13. var $setting = array();
  14. function block_doingnew() {
  15. $this->setting = array(
  16. 'titlelength' => array(
  17. 'title' => 'doinglist_titlelength',
  18. 'type' => 'text',
  19. 'default' => 40
  20. ),
  21. 'startrow' => array(
  22. 'title' => 'doinglist_startrow',
  23. 'type' => 'text',
  24. 'default' => 0
  25. ),
  26. );
  27. }
  28. function name() {
  29. return lang('blockclass', 'blockclass_doing_script_doingnew');
  30. }
  31. function cookparameter($parameter) {
  32. $parameter['orderby'] = 'dateine';
  33. return parent::cookparameter($parameter);
  34. }
  35. }
  36. ?>