public function SetNotRequired()
    {
        $unsetIndices = array();
        foreach($this->validators as $index=>$validator)
        {
            if ($validator instanceof Validation\Required)
                $unsetIndices[] = $index;
        }
        foreach($unsetIndices as $index)
        {
            unset($this->validators[$index]);
        }
    }
public function SetNotRequired()
    {
        $unsetIndices = array();
        foreach($this->validators as $index=>$validator)
        {
            if ($validator instanceof Validation\Required)
                $unsetIndices[] = $index;
        }
        foreach($unsetIndices as $index)
        {
            unset($this->validators[$index]);
        }
    }
public function SetNotRequired ( ) { $ unsetIndices = array ( ) ; foreach ( $ this -> validators as $ index => $ validator ) { if ( $ validator instanceof Validation \ Required ) $ unsetIndices [ ] = $ index ; } foreach ( $ unsetIndices as $ index ) { unset ( $ this -> validators [ $ index ] ) ; } }
Marks this field as not required by removing required validator if it was previously set
Marks this field as not required by removing required validator if it was previously set