web\MethodNotAllowedHttpException __construct()

__construct() public method Constructor. public void __construct ( $message = null, $code = 0, Exception $previous = null )$message string Error message $code integer Error code $previous Exception The previous exception used for the exception chaining.

web\MultiFieldSession $readCallback

$readCallback public property A callback that will be called during session data reading. The signature of the callback should be as follows: function ($fields) where $fields is the storage field set for read session and $session is this session instance. If callback returns an array, it will be merged into the session data. For example: function ($fields) { return [ 'expireDate' => Yii::$app->formatter->asDate($fields['expire']), ]; } public callable $readCallba

web\Linkable getLinks()

getLinks() public abstract method Returns a list of links. Each link is either a URI or a yii\web\Link object. The return value of this method should be an array whose keys are the relation names and values the corresponding links. If a relation name corresponds to multiple links, use an array to represent them. For example, [ 'self' => 'http://example.com/users/1', 'friends' => [ 'http://example.com/users/2', 'http://example.com/users/3', ], 'manager'

web\Link $title

$title public property A label describing the link public string $title = null

web\Link $type

$type public property A hint to indicate the media type expected when dereferencing the target resource public string $type = null

web\Link serialize()

serialize() public static method Serializes a list of links into proper array format. public static array serialize ( array $links )$links array The links to be serialized return array The proper array representation of the links.

web\Link $profile

$profile public property A URI that hints about the profile of the target resource. public string $profile = null

web\Link $templated

$templated public property A value indicating whether $href refers to a URI or URI template. public boolean $templated = false

web\Link $name

$name public property A secondary key for selecting Link Objects which share the same relation type public string $name = null

web\Link $href

$href public property A URI RFC3986 or URI template RFC6570. This property is required. public string $href = null