示例#1
0
 public function isMandatory($forceCheck = false)
 {
     if ($forceCheck) {
         return parent::isMandatory();
     }
     return false;
 }
示例#2
0
 /**
  * Function to check if the current field is mandatory or not
  * @return <Boolean> - true/false
  */
 public function isMandatory()
 {
     if (!$this->mandatory) {
         $this->mandatory = parent::isMandatory();
     }
     return $this->mandatory;
 }