function isAllowed($field) { $allowed =& $this->getAllowedFields(); $disallowed =& $this->getDisallowedFields(); return (empty($allowed) || simple_pattern_match($allowed, $field)) && (empty($disallowed) || !simple_pattern_match($disallowed, $field)); }
function canHandle($viewName, $locale) { return $this->viewNames == null || simple_pattern_match($this->viewNames, $viewName); }