web\CookieCollection removeAll()

removeAll() public method Removes all cookies. public void removeAll ( )throws yii\base\InvalidCallException if the cookie collection is read only

web\CookieCollection remove()

remove() public method Removes a cookie. If $removeFromBrowser is true, the cookie will be removed from the browser. In this case, a cookie with outdated expiry will be added to the collection. public void remove ( $cookie, $removeFromBrowser = true )$cookie yii\web\Cookie|string The cookie object or the name of the cookie to be removed. $removeFromBrowser boolean Whether to remove the cookie from browser throws yii\base\InvalidCallException if the cookie collection is read only

web\CookieCollection offsetUnset()

offsetUnset() public method Removes the named cookie. This method is required by the SPL interface ArrayAccess. It is implicitly called when you use something like unset($collection[$name]). This is equivalent to remove(). public void offsetUnset ( $name )$name string The cookie name

web\CookieCollection offsetSet()

offsetSet() public method Adds the cookie to the collection. 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 add(). public void offsetSet ( $name, $cookie )$name string The cookie name $cookie yii\web\Cookie The cookie to be added

web\CookieCollection offsetGet()

offsetGet() public method Returns the cookie with the specified name. This method is required by the SPL interface ArrayAccess. It is implicitly called when you use something like $cookie = $collection[$name];. This is equivalent to get(). public yii\web\Cookie offsetGet ( $name )$name string The cookie name return yii\web\Cookie The cookie with the specified name, null if the named cookie does not exist.

web\CookieCollection offsetExists()

offsetExists() public method Returns whether there is a cookie with the specified name. This method is required by the SPL interface ArrayAccess. It is implicitly called when you use something like isset($collection[$name]). public boolean offsetExists ( $name )$name string The cookie name return boolean Whether the named cookie exists

web\CookieCollection has()

has() public method Returns whether there is a cookie with the specified name. Note that if a cookie is marked for deletion from browser, this method will return false. See also remove(). public boolean has ( $name )$name string The cookie name return boolean Whether the named cookie exists

web\CookieCollection getValue()

getValue() public method Returns the value of the named cookie. See also get(). public mixed getValue ( $name, $defaultValue = null )$name string The cookie name $defaultValue mixed The value that should be returned when the named cookie does not exist. return mixed The value of the named cookie.

web\CookieCollection getIterator()

getIterator() public method Returns an iterator for traversing the cookies in the collection. This method is required by the SPL interface IteratorAggregate. It will be implicitly called when you use foreach to traverse the collection. public ArrayIterator getIterator ( )return ArrayIterator An iterator for traversing the cookies in the collection.

web\CookieCollection getCount()

getCount() public method Returns the number of cookies in the collection. public integer getCount ( )return integer The number of cookies in the collection.