File indexing completed on 2025-03-02 05:29:09
0001 <?php 0002 /** 0003 * ocs-apiserver 0004 * 0005 * Copyright 2016 by pling GmbH. 0006 * 0007 * This file is part of ocs-apiserver. 0008 * 0009 * This program is free software: you can redistribute it and/or modify 0010 * it under the terms of the GNU Affero General Public License as 0011 * published by the Free Software Foundation, either version 3 of the 0012 * License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU Affero General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Affero General Public License 0020 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 **/ 0022 0023 class Local_Controller_Router_Cli extends Zend_Controller_Router_Abstract implements Zend_Controller_Router_Interface 0024 { 0025 0026 /** 0027 * Processes a request and sets its controller and action. If 0028 * no route was possible, an exception is thrown. 0029 * 0030 * @param Zend_Controller_Request_Abstract 0031 * @throws Zend_Controller_Router_Exception 0032 * @return Zend_Controller_Request_Abstract|boolean 0033 */ 0034 public function route(Zend_Controller_Request_Abstract $dispatcher) 0035 { 0036 // Nothing to do. 0037 } 0038 0039 /** 0040 * Generates a URL path that can be used in URL creation, redirection, etc. 0041 * 0042 * May be passed user params to override ones from URI, Request or even defaults. 0043 * If passed parameter has a value of null, it's URL variable will be reset to 0044 * default. 0045 * 0046 * If null is passed as a route name assemble will use the current Route or 'default' 0047 * if current is not yet set. 0048 * 0049 * Reset is used to signal that all parameters should be reset to it's defaults. 0050 * Ignoring all URL specified values. User specified params still get precedence. 0051 * 0052 * Encode tells to url encode resulting path parts. 0053 * 0054 * @param array $userParams Options passed by a user used to override parameters 0055 * @param mixed $name The name of a Route to use 0056 * @param bool $reset Whether to reset to the route defaults ignoring URL params 0057 * @param bool $encode Tells to encode URL parts on output 0058 * @throws Zend_Controller_Router_Exception 0059 * @return string Resulting URL path 0060 */ 0061 public function assemble($userParams, $name = null, $reset = false, $encode = true) 0062 { 0063 // Nothing to do. 0064 } 0065 }