Prado\Web\TUrlMappingPattern::supportCustomUrl PHP Метод

supportCustomUrl() публичный Метод

С версии: 3.1.1
public supportCustomUrl ( $getItems ) : boolean
Результат boolean whether this pattern IS the one for constructing the URL with the specified GET items.
    public function supportCustomUrl($getItems)
    {
        if (!$this->_customUrl || $this->getPattern() === null) {
            return false;
        }
        if ($this->_parameters) {
            foreach ($this->_parameters as $key => $value) {
                if (!isset($getItems[$key])) {
                    return false;
                }
            }
        }
        if ($this->_constants) {
            foreach ($this->_constants->toArray() as $key => $value) {
                if (!isset($getItems[$key])) {
                    return false;
                }
                if ($getItems[$key] != $value) {
                    return false;
                }
            }
        }
        return true;
    }