library/Garp/Model/Validator/Abstract.php
public function beforeInsert(&$args) {
        $model = &$args[0];
        $data  = &$args[1];
        $this->validate($data, $model);
    }
public function beforeInsert(&$args) {
        $model = &$args[0];
        $data  = &$args[1];
        $this->validate($data, $model);
    }
public function beforeInsert ( & $ args ) { $ model = & $ args [ 0 ] ; $ data = & $ args [ 1 ] ; $ this -> validate ( $ data , $ model ) ; }
BeforeInsert callback.
@param Array $args The new data is in $args[1]
@return Void
BeforeInsert callback .