/models/blacklist.php
PHP | 37 lines | 14 code | 1 blank | 22 comment | 0 complexity | 7660191364037d0a948c8c633c23cf87 MD5 | raw file
Possible License(s): GPL-2.0
- <?php
- /* SVN FILE: $Id: blacklist.php 39 2009-07-16 10:03:24Z $ */
- /**
- * Short description for file.
- *
- * Long description for file
- *
- * PHP versions 5
- *
- * Licensed under The BSD License
- * Redistributions of files must retain the above copyright notice.
- *
- * @filesource
- * @copyright Copyright 2007-2009, Felix Ding (http://dingyu.me)
- * @link http://lonelythinker.org Project LonelyThinker
- * @package LonelyThinker
- * @author $LastChangedBy: $
- * @version $Revision: 39 $
- * @modifiedby $LastChangedBy: $
- * @lastmodified $Date: 2009-07-16 18:03:24 +0800 (Thu, 16 Jul 2009) $
- * @license http://www.opensource.org/licenses/bsd-license.php The BSD License
- */
- class Blacklist extends AppModel
- {
- var $name = 'Blacklist';
- var $validate = array(
- 'field' => array('rule'=>'notEmpty', 'message'=>'Field is required'),
- 'pattern' => array('rule'=>'notEmpty', 'message'=>'Pattern is required')
- );
-
- public function afterSave()
- {
- //clean the cache
- Cache::clear();
- }
- }
- ?>