/**
  * Replaces placeholders with request vars
  * @param  string $href URL with placeholders
  * @return sting  processed URL
  */
 private function _substituteVars($href)
 {
     $href = fn_substitute_vars($href, $this->_request);
     $href = fn_substitute_vars($href, Registry::get('config'));
     return $href;
 }
Beispiel #2
0
 /**
  * Parses common schema parameter types
  *
  * @param  array  $name  Parameter name
  * @param  array  $param Parameter data
  * @return string Result of parse
  */
 private function _getSchemaParam($name, $param)
 {
     $result = '';
     if (is_array($param)) {
         if (!empty($param['function'])) {
             $result = $this->_callSchemaMethod($param['function']);
         }
     } else {
         $result = $param;
         if ($name == 'title') {
             $result = __($result);
         } elseif ($name == 'link') {
             $result = fn_substitute_vars($result, $this->_request);
         }
     }
     return $result;
 }