web\HeaderCollection fromArray()

fromArray() public method (available since version 2.0.3) Populates the header collection from an array. public void fromArray ( array $array )$array array The headers to populate from

web\HeaderCollection count()

count() public method Returns the number of headers in the collection. This method is required by the SPL Countable interface. It will be implicitly called when you use count($collection). public integer count ( )return integer The number of headers in the collection.

web\HeaderCollection $count

$count public read-only property The number of headers in the collection. public integer getCount ( )

web\GroupUrlRule parseRequest()

parseRequest() public method Parses the given request and returns the corresponding route and parameters. public array|boolean parseRequest ( $manager, $request )$manager yii\web\UrlManager The URL manager $request yii\web\Request The request component return array|boolean The parsing result. The route and the parameters are returned as an array. If false, it means this rule cannot be used to parse this path info.

web\GroupUrlRule createUrl()

createUrl() public method Creates a URL according to the given route and parameters. public string|boolean createUrl ( $manager, $route, $params )$manager yii\web\UrlManager The URL manager $route string The route. It should not have slashes at the beginning or the end. $params array The parameters return string|boolean The created URL, or false if this rule cannot be used for creating this URL.

web\GroupUrlRule init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

web\GroupUrlRule $ruleConfig

$ruleConfig public property The default configuration of URL rules. Individual rule configurations specified via $rules will take precedence when the same property of the rule is configured. public array $ruleConfig = ['class' => 'yii\web\UrlRule']

web\GroupUrlRule createRules()

createRules() protected method Creates the URL rules that should be contained within this composite rule. protected yii\web\UrlRuleInterface[] createRules ( )return yii\web\UrlRuleInterface[] The URL rules

web\GroupUrlRule $rules

$rules public property The rules contained within this composite rule. Please refer to yii\web\UrlManager::$rules for the format of this property. See also: $prefix $routePrefix public array $rules = []

web\GroupUrlRule $routePrefix

$routePrefix public property The prefix for the route part of every rule declared in $rules. The prefix and the route will be separated with a slash. If this property is not set, it will take the value of $prefix. public string $routePrefix = null