public function SetRequired($errorLabelPrefix = '')
    {
        foreach($this->validators as $validator)
        {
            if ($validator instanceof Validation\Required)
                return;
        }
        $this->validators[] = new Validation\Required($errorLabelPrefix);
    }
public function SetRequired($errorLabelPrefix = '')
    {
        foreach($this->validators as $validator)
        {
            if ($validator instanceof Validation\Required)
                return;
        }
        $this->validators[] = new Validation\Required($errorLabelPrefix);
    }
public function SetRequired ( $ errorLabelPrefix = '' ) { foreach ( $ this -> validators as $ validator ) { if ( $ validator instanceof Validation \ Required ) return ; } $ this -> validators [ ] = new Validation \ Required ( $ errorLabelPrefix ) ; }
Marks this field as required by adding a validator
@return type
Marks this field as required by adding a validator