示例#1
0
文件: Form.php 项目: redema/sapphire
	/**
	 * Returns true if security is enabled - that is if the security token
	 * should be included and checked on this form.
	 * 
	 * @deprecated 2.5 Use Form->getSecurityToken()->isEnabled()
	 *
	 * @return bool
	 */
	public function securityTokenEnabled() {
		Deprecation::notice('2.5', 'Use Form->getSecurityToken()->isEnabled() instead.');
		return $this->securityToken->isEnabled();
	}
示例#2
0
 /**
  * Returns true if security is enabled - that is if the security token
  * should be included and checked on this form.
  * 
  * @deprecated 2.5 Use Form->getSecurityToken()->isEnabled()
  *
  * @return bool
  */
 function securityTokenEnabled()
 {
     return $this->securityToken->isEnabled();
 }