예제 #1
0
 /**
  * @param Mana_Seo_Model_ParsedUrl $token
  * @return bool
  */
 protected function _getParameterUrlKey($token)
 {
     if (!isset($this->_parameterUrls[$this->_schema->getId()])) {
         $urls = array();
         foreach ($this->_getUrls(false, Mana_Seo_Resource_Url_Collection::TYPE_PARAMETER) as $url) {
             if (!isset($urls[$url->getFinalUrlKey()])) {
                 $urls[$url->getFinalUrlKey()] = $url;
             } else {
                 $this->_conflict($url->getFinalUrlKey(), self::CONFLICT_PARAMETER);
             }
         }
         $this->_parameterUrls[$this->_schema->getId()] = $urls;
     }
     if (isset($this->_parameterUrls[$this->_schema->getId()][$token->getText()])) {
         $token->setParameterUrl($this->_parameterUrls[$this->_schema->getId()][$token->getText()]);
         return true;
     } else {
         return false;
     }
 }