public function checkRequired()
    {
        if (!$this->required || $this->required == "") {
            return false;
        } elseif ($this->required == "Y") {
            $required = true;
        } elseif ($required != "N") {
            $required = false;
        } else {
            $required = Expression::evaluateExpression($this->required, $this->getDataObj());
        }
        return $required;
    }
public function checkRequired()
    {
        if (!$this->required || $this->required == "") {
            return false;
        } elseif ($this->required == "Y") {
            $required = true;
        } elseif ($required != "N") {
            $required = false;
        } else {
            $required = Expression::evaluateExpression($this->required, $this->getDataObj());
        }
        return $required;
    }
public function checkRequired ( ) { if ( ! $ this -> required || $ this -> required == "" ) { return false ; } elseif ( $ this -> required == "Y" ) { $ required = true ; } elseif ( $ required != "N" ) { $ required = false ; } else { $ required = Expression :: evaluateExpression ( $ this -> required , $ this -> getDataObj ( ) ) ; } return $ required ; }
Check if the field is a required field

@return boolean true if the field is a required field
Check if the field is a required field