Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add @link to CookieComponent docblocks

  • Loading branch information...
commit bc0e0b5c053de525e3966f4e553b7e730ea6e3d5 1 parent bb51b0f
@shama shama authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/Controller/Component/CookieComponent.php
View
5 lib/Cake/Controller/Component/CookieComponent.php
@@ -198,6 +198,7 @@ public function startup($controller) {
* @param boolean $encrypt Set to true to encrypt value, false otherwise
* @param string $expires Can be either Unix timestamp, or date string
* @return void
+ * @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::write
*/
public function write($key, $value = null, $encrypt = true, $expires = null) {
if (is_null($encrypt)) {
@@ -234,6 +235,7 @@ public function write($key, $value = null, $encrypt = true, $expires = null) {
*
* @param mixed $key Key of the value to be obtained. If none specified, obtain map key => values
* @return string or null, value for specified key
+ * @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::read
*/
public function read($key = null) {
if (empty($this->_values) && isset($_COOKIE[$this->name])) {
@@ -269,6 +271,7 @@ public function read($key = null) {
*
* @param string $key Key of the value to be deleted
* @return void
+ * @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::delete
*/
public function delete($key) {
if (empty($this->_values)) {
@@ -298,6 +301,7 @@ public function delete($key) {
* Failure to do so will result in header already sent errors.
*
* @return void
+ * @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::destroy
*/
public function destroy() {
if (isset($_COOKIE[$this->name])) {
@@ -407,6 +411,7 @@ protected function _delete($name) {
protected function _setcookie($name, $value, $expire, $path, $domain, $secure, $httpOnly = false) {
setcookie($name, $value, $expire, $path, $domain, $secure, $httpOnly);
}
+
/**
* Encrypts $value using public $type method in Security class
*
Please sign in to comment.
Something went wrong with that request. Please try again.