FOF30\Model\DataModel::removeSkipCheckField PHP Method

removeSkipCheckField() public method

Remove a field from the list of fields to be ignored by the check() method
public removeSkipCheckField ( string $fieldName ) : void
$fieldName string The field to remove (can be a field alias)
return void
    public function removeSkipCheckField($fieldName)
    {
        if (!is_array($this->fieldsSkipChecks)) {
            $this->fieldsSkipChecks = array();
            return;
        }
        if (!$this->hasField($fieldName)) {
            return;
        }
        $fieldName = $this->getFieldAlias($fieldName);
        if (in_array($fieldName, $this->fieldsSkipChecks)) {
            $index = array_search($fieldName, $this->fieldsSkipChecks);
            unset($this->fieldsSkipChecks[$index]);
        }
    }