function parse($url)
 {
     if (preg_match("/^\\/myhand\\/(.*)\\/(.*)\$/", $url->pathInfo, $match)) {
         $urlact = new jUrlAction($url->params);
         $urlact->setParam('action', $match[1] . ':' . $match[2]);
         return $urlact;
     } else {
         return false;
     }
 }
Example #2
0
 /**
  * for the patterns "module~ctrl:*@request".
  *
  * @param array $urlinfo
  *                       array(5, 'entrypoint',
  *                       boolean https true/false,
  *                       'pathinfobase'), 
  */
 protected function buildForWholeController(\jUrlAction $urlact, \jUrl $url, $urlinfo)
 {
     list($ctrl, $method) = explode(':', $urlact->getParam('action'));
     $url->pathInfo = $urlinfo[3];
     if ($method != 'index') {
         $url->pathInfo .= '/' . $method;
     }
     $url->delParam('module');
     $url->delParam('action');
 }
Example #3
0
 function parse($url)
 {
     $urlact = new jUrlAction($url->params);
     $urlact->setParam('page', $url->pathInfo);
     return $urlact;
 }