PageRenderTime 66ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/models/blacklist.php

https://github.com/felixding/LonelyThinker
PHP | 37 lines | 14 code | 1 blank | 22 comment | 0 complexity | 7660191364037d0a948c8c633c23cf87 MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /* SVN FILE: $Id: blacklist.php 39 2009-07-16 10:03:24Z $ */
  3. /**
  4. * Short description for file.
  5. *
  6. * Long description for file
  7. *
  8. * PHP versions 5
  9. *
  10. * Licensed under The BSD License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @filesource
  14. * @copyright Copyright 2007-2009, Felix Ding (http://dingyu.me)
  15. * @link http://lonelythinker.org Project LonelyThinker
  16. * @package LonelyThinker
  17. * @author $LastChangedBy: $
  18. * @version $Revision: 39 $
  19. * @modifiedby $LastChangedBy: $
  20. * @lastmodified $Date: 2009-07-16 18:03:24 +0800 (Thu, 16 Jul 2009) $
  21. * @license http://www.opensource.org/licenses/bsd-license.php The BSD License
  22. */
  23. class Blacklist extends AppModel
  24. {
  25. var $name = 'Blacklist';
  26. var $validate = array(
  27. 'field' => array('rule'=>'notEmpty', 'message'=>'Field is required'),
  28. 'pattern' => array('rule'=>'notEmpty', 'message'=>'Pattern is required')
  29. );
  30. public function afterSave()
  31. {
  32. //clean the cache
  33. Cache::clear();
  34. }
  35. }
  36. ?>