VALID_NUMBER ); var $belongsTo = array('Host'); function cleanUpExpired($date_limit = null) { if($date_limit) { $this->query('DELETE FROM `login_attempts` WHERE `login_attempts`.`created` <= '.gmdate("Y-m-d H:i:s",$date_limit)); } } }?>