protected function init()
    {
        // build the local matrix just once
        if (empty($this->errorCodeMatrix)) {
            // get type and order from Doozr_Form_Service_Validate so we don't need to define it manually again
            $typeMatrix = Doozr_Form_Service_Validator_Generic::getValidationTypeMatrix();

            // iterate over types and construct error-code-matrix of it
            foreach ($typeMatrix as $type => $order) {
                $this->errorCodeMatrix[$type] = ($order + 1);
            }
        }

        return $this;
    }
protected function init()
    {
        // build the local matrix just once
        if (empty($this->errorCodeMatrix)) {
            // get type and order from Doozr_Form_Service_Validate so we don't need to define it manually again
            $typeMatrix = Doozr_Form_Service_Validator_Generic::getValidationTypeMatrix();

            // iterate over types and construct error-code-matrix of it
            foreach ($typeMatrix as $type => $order) {
                $this->errorCodeMatrix[$type] = ($order + 1);
            }
        }

        return $this;
    }
protected function init ( ) { // build the local matrix just once if ( empty ( $ this -> errorCodeMatrix ) ) { // get type and order from Doozr_Form_Service_Validate so we don't need to define it manually again $ typeMatrix = Doozr_Form_Service_Validator_Generic :: getValidationTypeMatrix ( ) ; // iterate over types and construct error-code-matrix of it foreach ( $ typeMatrix as $ type => $ order ) { $ this -> errorCodeMatrix [ $ type ] = ( $ order + 1 ) ; } } return $ this ; }
Initializes the validation matrix.

@author Benjamin Carl <opensource@clickalicious.de>

@return $this Instance for chaining
Initializes the validation matrix .