Beispiel #1
0
 private function _getUrlForAction($action, $params = array())
 {
     return Ak::toUrl(array_merge($params, array('action' => $action), $this->_default_urlparams));
 }
Beispiel #2
0
 function _mapRoutes($Map = null)
 {
     require_once AK_LIB_DIR . DS . 'AkRouter.php';
     if (is_file(AK_ROUTES_MAPPING_FILE)) {
         if (empty($Map)) {
             $Map =& AkRouter();
         }
         include AK_ROUTES_MAPPING_FILE;
         // Set this routes for being used via Ak::toUrl
         Ak::toUrl($Map, true);
         $this->checkForRoutedRequests($Map);
     }
 }
Beispiel #3
0
 /**
  * Returns a query string with escaped keys and values from the passed array. If the passed 
  * array contains an 'id' it'll
  * be added as a path element instead of a regular parameter pair.
  */
 function buildQueryString($array, $only_keys = null)
 {
     $array = !empty($only_keys) ? array_keys($array) : $array;
     return Ak::toUrl($array);
 }