Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
yii
web
CookieCollection
offsetSet
yii\web\CookieCollection::offsetSet PHP Method
CookieCollection Class Documentation
ファイルを表示
Open project: yiisoft/yii2
offsetSet()
public
method
This method is required by the SPL interface [[\ArrayAccess]]. It is implicitly called when you use something like
$collection[$name] = $cookie;
. This is equivalent to
CookieCollection::add
.
public
offsetSet
(
string
$name
,
Cookie
$cookie
)
$name
string
the cookie name
$cookie
Cookie
the cookie to be added
public function offsetSet($name, $cookie) { $this->add($cookie); }
CookieCollection
__construct
add
count
fromArray
get
getCount
getIterator
getValue
has
offsetExists
offsetGet
offsetSet
offsetUnset
remove
removeAll
toArray