PHP 클래스 Horde_Token_File, horde

Copyright 1999-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Max Kalika ([email protected])
상속: extends Horde_Token_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_connected boolean Boolean indicating whether or not we have an open file descriptor.
$_fd resource Handle for the open file descriptor.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
__destruct ( ) Destructor.
add ( string $tokenID ) Add a token ID.
exists ( string $tokenID ) : boolean Does the token exist?
purge ( ) Delete all expired connection IDs.

보호된 메소드들

메소드 설명
_connect ( ) Opens a file descriptor to a new or existing file.
_disconnect ( boolean $error = true ) Closes the file descriptor.

메소드 상세

__construct() 공개 메소드

Constructor.
또한 보기: Horde_Token_Base::__construct() for more parameters.
public __construct ( array $params = [] )
$params array Optional parameters: - token_dir (string): The directory where to keep token files. DEFAULT: System temporary directory

__destruct() 공개 메소드

Destructor.
public __destruct ( )

_connect() 보호된 메소드

Opens a file descriptor to a new or existing file.
protected _connect ( )

_disconnect() 보호된 메소드

Closes the file descriptor.
protected _disconnect ( boolean $error = true )
$error boolean Throw exception on error?

add() 공개 메소드

Add a token ID.
public add ( string $tokenID )
$tokenID string Token ID to add.

exists() 공개 메소드

Does the token exist?
public exists ( string $tokenID ) : boolean
$tokenID string Token ID.
리턴 boolean True if the token exists.

purge() 공개 메소드

Delete all expired connection IDs.
public purge ( )

프로퍼티 상세

$_connected 보호되어 있는 프로퍼티

Boolean indicating whether or not we have an open file descriptor.
protected bool $_connected
리턴 boolean

$_fd 보호되어 있는 프로퍼티

Handle for the open file descriptor.
protected resource $_fd
리턴 resource