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 SafeUrl

Generate a URL with signature

Wei\Base
Extended by Wei\SafeUrl
Namespace: Wei
Located at SafeUrl.php
Methods summary
public string
# __invoke( string $url )

Generate a URL with signature, alias of generate method

Generate a URL with signature, alias of generate method

Parameters

$url

Returns

string
public string
# generate( string $url )

Generate a URL with signature

Generate a URL with signature

Parameters

$url

Returns

string
public boolean
# verify( )

Verify whether the URL signature is OK

Verify whether the URL signature is OK

Returns

boolean
public
# setParams( string|array $params )

Set parameter names to generate signature

Set parameter names to generate signature

Parameters

$params

Returns


$this
protected string
# generateToken( array $array )

Generate signature by specified array

Generate signature by specified array

Parameters

$array

Returns

string
protected array
# filterKeys( string $query, array $keys )

Removes array element by keys

Removes array element by keys

Parameters

$query
$keys

Returns

array
Methods inherited from Wei\Base
__call(), __construct(), __get(), getOption(), setOption()
Properties summary
protected string $token

The token to generate the signature

The token to generate the signature

# 'wei'
protected integer $expireTime

The expire seconds of signature

The expire seconds of signature

# 60
protected array $params

Generate signature for specified parameter names

Generate signature for specified parameter names

# array()
Properties inherited from Wei\Base
$providers, $wei
Magic properties summary
public Wei\Request $request
Wei Framework API documentation generated by ApiGen