public function getDefaultMessage()
    {
        switch ($this->type) {
            
            case self::LESS_THAN:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGELESSTHAN',
                    'This value should be less than the value of the %s field.'
                );
                
                break;
                
            case self::LESS_THAN_OR_EQUAL:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGELESSTHANOREQUAL',
                    'This value should be less than or equal to the value of the %s field.'
                );
                
                break;
                
            case self::GREATER_THAN:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGEGREATERTHAN',
                    'This value should be greater than the value of the %s field.'
                );
                
                break;
                
            case self::GREATER_THAN_OR_EQUAL:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGEGREATERTHANOREQUAL',
                    'This value should be greater than or equal to the value of the %s field.'
                );
                
                break;
                
        }
        
        return sprintf($message, $this->getTargetTitle());
    }
public function getDefaultMessage()
    {
        switch ($this->type) {
            
            case self::LESS_THAN:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGELESSTHAN',
                    'This value should be less than the value of the %s field.'
                );
                
                break;
                
            case self::LESS_THAN_OR_EQUAL:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGELESSTHANOREQUAL',
                    'This value should be less than or equal to the value of the %s field.'
                );
                
                break;
                
            case self::GREATER_THAN:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGEGREATERTHAN',
                    'This value should be greater than the value of the %s field.'
                );
                
                break;
                
            case self::GREATER_THAN_OR_EQUAL:
                
                $message = _t(
                    __CLASS__ . '.DEFAULTMESSAGEGREATERTHANOREQUAL',
                    'This value should be greater than or equal to the value of the %s field.'
                );
                
                break;
                
        }
        
        return sprintf($message, $this->getTargetTitle());
    }
public function getDefaultMessage ( ) { switch ( $ this -> type ) { case self :: LESS_THAN : $ message = _t ( __CLASS__ . '.DEFAULTMESSAGELESSTHAN' , 'This value should be less than the value of the %s field.' ) ; break ; case self :: LESS_THAN_OR_EQUAL : $ message = _t ( __CLASS__ . '.DEFAULTMESSAGELESSTHANOREQUAL' , 'This value should be less than or equal to the value of the %s field.' ) ; break ; case self :: GREATER_THAN : $ message = _t ( __CLASS__ . '.DEFAULTMESSAGEGREATERTHAN' , 'This value should be greater than the value of the %s field.' ) ; break ; case self :: GREATER_THAN_OR_EQUAL : $ message = _t ( __CLASS__ . '.DEFAULTMESSAGEGREATERTHANOREQUAL' , 'This value should be greater than or equal to the value of the %s field.' ) ; break ; } return sprintf ( $ message , $ this -> getTargetTitle ( ) ) ; }
Answers the default message for the rule.

@return string
Answers the default message for the rule .