/** * URL to view frontend page. * * @param string $view * @param mixed $id * @param string $alias entity title alias * @param array $customParams next custome URL parameters * @return string URL */ static function view($view, $id = null, $alias = null, $customParams = array()) { return ARoute::root() . '&view=' . $view . ARoute::simpleId($id, $alias) . ARoute::customUrl($customParams, false); }
/** * Get route to create reservation by price ID and start reservation datetime property. * * @param int $id * subject ID * @param tring $from * reservation date (MySQL datetime) * @return string URL */ function getReservationRoute($priceId, $from) { return ARoute::customUrl(array('controller' => CONTROLLER_RESERVATION, 'task' => 'add', 'id' => $priceId, 'from' => $from)); }