Overview

Namespaces

  • None
  • PHP
  • Wei
    • Validator

Classes

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

Class Base

The base class for all services

Direct known subclasses

Wei\App, Wei\Asset, Wei\Gravatar, Wei\Http, Wei\Lock, Wei\Logger, Wei\Password, Wei\PhpError, Wei\Pinyin, Wei\Record, Wei\Request, Wei\Response, Wei\BaseCache, Wei\Router, Wei\SafeUrl, Wei\Session, Wei\T, Wei\Ua, Wei\Url, Wei\Uuid, Wei\Validate, Wei\Validator\BaseValidator, Wei\View, Wei\Config, Wei\WeChatApp, Wei\Wei, Wei\Cookie, Wei\Counter, Wei\Db, Wei\E, Wei\Env, Wei\Error

Indirect known subclasses

Wei\Apc, Wei\ArrayCache, Wei\Redis, Wei\Upload, Wei\Validator\All, Wei\Validator\AllOf, Wei\Validator\Alnum, Wei\Validator\Alpha, Wei\Validator\Between, Wei\Validator\Blank, Wei\Validator\Callback, Wei\Validator\CharLength, Wei\Bicache, Wei\Validator\Chinese, Wei\Validator\Color, Wei\Validator\Contains, Wei\Validator\CreditCard, Wei\Validator\Date, Wei\Validator\DateTime, Wei\Validator\Decimal, Wei\Validator\Digit, Wei\Validator\Dir, Wei\Validator\DivisibleBy, Wei\Cache, Wei\Validator\DoubleByte, Wei\Validator\Email, Wei\Validator\EndsWith, Wei\Validator\EqualTo, Wei\Validator\Exists, Wei\Validator\FieldExists, Wei\Validator\File, Wei\Validator\GreaterThan, Wei\Validator\GreaterThanOrEqual, Wei\Validator\IdCardCn, Wei\Couchbase, Wei\Validator\IdCardHk, Wei\Validator\IdCardMo, Wei\Validator\IdCardTw, Wei\Validator\IdenticalTo, Wei\Validator\Image, Wei\Validator\In, Wei\Validator\Ip, Wei\Validator\Length, Wei\Validator\LessThan, Wei\Validator\LessThanOrEqual, Wei\DbCache, Wei\Validator\Lowercase, Wei\Validator\Luhn, Wei\Validator\MaxLength, Wei\Validator\MinLength, Wei\Validator\MobileCn, Wei\Validator\NaturalNumber, Wei\Validator\NoneOf, Wei\Validator\Null, Wei\Validator\Number, Wei\Validator\OneOf, Wei\FileCache, Wei\Validator\Password, Wei\Validator\Phone, Wei\Validator\PhoneCn, Wei\Validator\PlateNumberCn, Wei\Validator\PositiveInteger, Wei\Validator\PostcodeCn, Wei\Validator\Present, Wei\Validator\QQ, Wei\Validator\RecordExists, Wei\Validator\Regex, Wei\Memcache, Wei\Validator\Required, Wei\Validator\SomeOf, Wei\Validator\StartsWith, Wei\Validator\Time, Wei\Validator\Tld, Wei\Validator\Type, Wei\Validator\Uppercase, Wei\Validator\Url, Wei\Validator\Uuid, Wei\Memcached, Wei\MongoCache
Abstract
Namespace: Wei
Author: Twin Huang twinhuang@qq.com
Located at Base.php
Methods summary
public
# __construct( array $options = array() )

Constructor

Constructor

Parameters

$options
The property options

Throws

InvalidArgumentException
When option "wei" is not an instance of "Wei\Wei"
public mixed
# setOption( string|array $name, mixed $value = null )

Set option property value

Set option property value

Parameters

$name
$value

Returns

mixed
$this
public mixed
# getOption( string $name )

Returns the value of option

Returns the value of option

Parameters

$name
The name of property

Returns

mixed
public mixed
# __call( string $name, array $args )

Invoke a service by the given name

Invoke a service by the given name

Parameters

$name
The name of service
$args
The arguments for the service's __invoke method

Returns

mixed
public mixed
# __get( string $name )

Get a service object by the given name

Get a service object by the given name

Parameters

$name
The name of service

Returns

mixed
$this
Properties summary
protected array $providers

The service provider map

The service provider map

# array()
protected Wei\Wei $wei

The service container object

The service container object

#
Wei Framework API documentation generated by ApiGen