rest\UrlRule 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.

rest\UrlRule 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

rest\UrlRule 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 ( )

rest\UrlRule createRule()

createRule() protected method Creates a URL rule using the given pattern and action. protected yii\web\UrlRuleInterface createRule ( $pattern, $prefix, $action )$pattern string $prefix string $action string

rest\UrlRule $ruleConfig

$ruleConfig public property The default configuration for creating each URL rule contained by this rule. public array $ruleConfig = ['class' => 'yii\web\UrlRule']

rest\UrlRule $suffix

$suffix public property The suffix that will be assigned to yii\web\UrlRule::$suffix for every generated rule. public string $suffix = null

rest\UrlRule $tokens

$tokens public property List of tokens that should be replaced for each pattern. The keys are the token names, and the values are the corresponding replacements. See also $patterns. public array $tokens = ['{id}' => '<id:\\d[\\d,]*>']

rest\UrlRule $only

$only public property List of acceptable actions. If not empty, only the actions within this array will have the corresponding URL rules created. See also $patterns. public array $only = []

rest\UrlRule $prefix

$prefix public property The common prefix string shared by all patterns. public string $prefix = null

rest\UrlRule $patterns

$patterns public property List of possible patterns and the corresponding actions for creating the URL rules. The keys are the patterns and the values are the corresponding actions. The format of patterns is Verbs Pattern, where Verbs stands for a list of HTTP verbs separated by comma (without space). If Verbs is not specified, it means all verbs are allowed. Pattern is optional. It will be prefixed with $prefix/$controller/, and tokens in it will be replaced by $tokens. public array $patt