Contao\Filter\SyncExclude::accept PHP 메소드

accept() 공개 메소드

Check whether the current element of the iterator is acceptable
public accept ( ) : boolean
리턴 boolean True if the element is acceptable
    public function accept()
    {
        // The resource is to be ignored
        if (strncmp($this->current()->getFilename(), '.', 1) === 0) {
            return false;
        }
        $strRelpath = str_replace(TL_ROOT . '/', '', $this->current()->getPathname());
        // The resource is an exempt folder
        if (in_array($strRelpath, $this->arrExempt)) {
            return false;
        }
        // The resource is accepted
        return true;
    }