Overview

Namespaces

  • None
  • Wei
    • Validator

Classes

  • Apc
  • App
  • ArrayCache
  • Asset
  • Base
  • BaseCache
  • BaseController
  • Bicache
  • Cache
  • Config
  • Cookie
  • Couchbase
  • Counter
  • Db
  • DbCache
  • E
  • Env
  • Error
  • FileCache
  • Gravatar
  • Http
  • Lock
  • Logger
  • Memcache
  • Memcached
  • MongoCache
  • Password
  • PhpError
  • PhpFileCache
  • Pinyin
  • Record
  • Redis
  • Request
  • Response
  • Router
  • SafeUrl
  • Session
  • Soap
  • T
  • Ua
  • Upload
  • Url
  • Uuid
  • Validate
  • View
  • WeChatApp
  • Wei
  • Overview
  • Namespace
  • Class

Class Url

A helper service to generate the URL

Wei\Base
Extended by Wei\Url
Namespace: Wei
Author: Twin Huang twinhuang@qq.com
Located at Url.php
Methods summary
public string
# __invoke( string $url = '', string|array $argsOrParams = array(), string|array $params = array() )

Generate the URL by specified URL and parameters

Generate the URL by specified URL and parameters

Parameters

$url
$argsOrParams
$params

Returns

string
public string
# full( string $url, string|array $argsOrParams = array(), string|array $params = array() )

Generate the absolute URL path by specified URL and parameters

Generate the absolute URL path by specified URL and parameters

Parameters

$url
$argsOrParams
$params

Returns

string
public string
# query( string $url = '', string|array $argsOrParams = array(), string|array $params = array() )

Generate the URL path with current query parameters and specified parameters

Generate the URL path with current query parameters and specified parameters

Parameters

$url
$argsOrParams
$params

Returns

string
public string
# append( string $url = '', string|array $argsOrParams = array(), string|array $params = array() )

Append parameters to specified URL

Append parameters to specified URL

Parameters

$url
$argsOrParams
The arguments to replace in URL or the parameters append to the URL
$params
The parameters append to the URL

Returns

string
Methods inherited from Wei\Base
__call(), __construct(), __get(), getOption(), setOption()
Properties inherited from Wei\Base
$providers, $wei
Magic properties summary
public Wei\Request $request

A service that handles the HTTP request data

Wei Framework API documentation generated by ApiGen