/** * beforeSave callback * * @param array $options * @return boolean */ public function beforeSave($options = array()) { if (!parent::beforeSave($options)) { return false; } $this->sanitizeFields(); return true; }
/** * Constructor * * @param mixed $id Model ID * @param string $table Table name * @param string $ds Datasource * @access public */ public function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); $this->validate = array(); }