phpDocumentor http
cookie
[ class tree: http ] [ index: http ] [ all elements ]

Class: WindNormalCookie

Source Location: /http/cookie/WindNormalCookie.php

Class WindNormalCookie

Class Overview

Implements interfaces:

将cookie作为对象操作

Located in /http/cookie/WindNormalCookie.php [line 14]

WindModule
   |
   --WindNormalCookie
Author(s): Information Tags:
Version:  $Id: WindNormalCookie.php 3230 2011-12-02 09:18:54Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From WindModule

WindModule::$_config
WindModule::$_proxy
WindModule::$_typeValidation

Inherited From WindModule

WindModule::getConfig()
根据配置名取得相应的配置
WindModule::getRequest()
返回当前应用的WindHttpRequest对象
WindModule::getResponse()
返回当前应用的WindHttpResponse对象
WindModule::getSystemFactory()
返回当前应用的WindFactory对象
WindModule::setConfig()
设置类配置
WindModule::setDelayAttributes()
设置延迟加载类属性相关组件配置信息
WindModule::toArray()
返回该对象的数组类型
WindModule::writeTableCloneProperty()
类对象clone白名单
WindModule::__call()
重载了魔术方法__call
WindModule::__clone()
重载魔术方法__clone
WindModule::__get()
重载了魔术方法__get
WindModule::__set()
重载了魔术方法__set

[ Top ]
Property Summary
mixed   $domain  
mixed   $encode  
mixed   $expires  
mixed   $httponly  
mixed   $path  
mixed   $prefix  
mixed   $secure  

[ Top ]
Method Summary
void   __construct()   构造函数
boolean   delete()   移除cookie值
boolean   deleteAll()   移除全部cookie值
void   exist()   判断cookie值是否存在
void   get()   获取cookie值
string   getDomain()   获取cookie的域
mixed   getExpirs()   获取cookie的过期时间
string   getPath()   获取cookie的路径
void   isRegistered()  
boolean   set()   设置cookie
void   setConfig()   配置设置

[ Top ]
Properties
mixed   $domain = null [line 19]
API Tags:
Access:  protected


[ Top ]
mixed   $encode = false [line 16]
API Tags:
Access:  protected


[ Top ]
mixed   $expires = null [line 17]
API Tags:
Access:  protected


[ Top ]
mixed   $httponly = false [line 21]
API Tags:
Access:  protected


[ Top ]
mixed   $path = null [line 18]
API Tags:
Access:  protected


[ Top ]
mixed   $prefix = null [line 15]
API Tags:
Access:  protected


[ Top ]
mixed   $secure = false [line 20]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 37]

  void __construct( [string $prefix = null], [boolean $encode = false], [string|int $expires = null], [string $path = null], [string $domain = null], [boolean $secure = false], [boolean $httponly = false]  )

构造函数

根据传入的cookie数据初始化cookie数据

Parameters:
string|int   $expires:  过期时间,默认为null即会话cookie,随着会话结束将会销毁
boolean   $encode:  是否使用 MIME base64 对数据进行编码,默认是false即不进行编码
string   $prefix:  cookie前缀,默认为null即没有前缀
string   $path:  cookie保存的路径,默认为null即采用默认
string   $domain:  cookie所属域,默认为null即不设置
boolean   $secure:  是否安全连接,默认为false即不采用安全链接
boolean   $httponly:  是否可通过客户端脚本访问,默认为false即客户端脚本可以访问cookie

API Tags:
Access:  public


[ Top ]
delete  [line 96]

  boolean delete( string $name  )

移除cookie值

Parameters:
string   $name: 

API Tags:
See:  IWindHttpContainer::delete()
Access:  public


Implementation of:
IWindHttpContainer::delete()
删除容器中的值

[ Top ]
deleteAll  [line 114]

  boolean deleteAll( )

移除全部cookie值


API Tags:
Access:  public


[ Top ]
exist  [line 123]

  void exist( string $name  )

判断cookie值是否存在

Parameters:
string   $name: 

API Tags:
Access:  public


[ Top ]
get  [line 84]

  void get( string $name  )

获取cookie值

Parameters:
string   $name: 

API Tags:
Access:  public


Implementation of:
IWindHttpContainer::get()
获取容器中的内容值

[ Top ]
getDomain  [line 133]

  string getDomain( )

获取cookie的域


API Tags:
Return:  获得cookie域
Access:  public


[ Top ]
getExpirs  [line 151]

  mixed getExpirs( )

获取cookie的过期时间


API Tags:
Return:  获得cookie的过期时间
Access:  public


[ Top ]
getPath  [line 142]

  string getPath( )

获取cookie的路径


API Tags:
Return:  获得cookie保存路径
Access:  public


[ Top ]
isRegistered  [line 104]

  void isRegistered( $name  )

Parameters:
   $name: 

API Tags:
Access:  public


Implementation of:
IWindHttpContainer::isRegistered()
检测变量是否已经被注册

[ Top ]
set  [line 72]

  boolean set( string $name, mixed $value  )

设置cookie

Parameters:
string   $name: 
mixed   $value: 

API Tags:
Access:  public


Implementation of:
IWindHttpContainer::set()
向容器中设置值

[ Top ]
setConfig  [line 54]

  void setConfig( array|string $config  )

配置设置

Parameters:
array|string   $config: 

API Tags:
See:  WindModule::setConfig()
Access:  public


Redefinition of:
WindModule::setConfig()
设置类配置

[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:38 +0800 by phpDocumentor 1.4.4