* * //Generate a URL appending the URI to the base URI * echo $url->get('products/edit/1'); * * //Generate a URL for a predefined route * echo $url->get(array('for' => 'blog-post', 'title' => 'some-cool-stuff', 'year' => '2012')); * * */ class Url implements \Phalcon\Mvc\UrlInterface, \Phalcon\DI\InjectionAwareInterface { protected $_dependencyInjector; protected $_baseUri; protected $_staticBaseUri; protected $_basePath; protected $_router; /** * Sets the DependencyInjector container * * @param \Phalcon\DiInterface $dependencyInjector */ public function setDI($dependencyInjector){ } /** * Returns the DependencyInjector container * * @return \Phalcon\DiInterface */ public function getDI(){ } /** * Sets a prefix for all the URIs to be generated * * * $url->setBaseUri('/invo/'); * $url->setBaseUri('/invo/order.php/'); * * * @param string $baseUri * @return \Phalcon\Mvc\Url */ public function setBaseUri($baseUri){ } /** * Sets a prefix for all static URLs generated * * * $url->setStaticBaseUri('/invo/'); * * * @param string $staticBaseUri * @return \Phalcon\Mvc\Url */ public function setStaticBaseUri($staticBaseUri){ } /** * Returns the prefix for all the generated urls. By default / * * @return string */ public function getBaseUri(){ } /** * Returns the prefix for all the generated static urls. By default / * * @return string */ public function getStaticBaseUri(){ } /** * Sets a base path for all the generated paths * * * $url->setBasePath('/var/www/htdocs/'); * * * @param string $basePath * @return \Phalcon\Mvc\Url */ public function setBasePath($basePath){ } /** * Returns the base path * * @return string */ public function getBasePath(){ } /** * Generates a URL * * * * //Generate a URL appending the URI to the base URI * echo $url->get('products/edit/1'); * * //Generate a URL for a predefined route * echo $url->get(array('for' => 'blog-post', 'title' => 'some-cool-stuff', 'year' => '2012')); * * * * @param string|array $uri * @param array|object args Optional arguments to be appended to the query string * @return string */ public function get($uri=null, $args=null){ } /** * Generates a URL for a static resource * * @param string|array $uri * @return string */ public function getStatic($uri=null){ } /** * Generates a local path * * @param string $path * @return string */ public function path($path=null){ } } }