PHP Class 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.
显示文件
Open project: horde/horde
Protected Properties
Property |
Type |
Description |
|
$_connected |
boolean |
Boolean indicating whether or not we have an open file descriptor. |
|
$_fd |
resource |
Handle for the open file descriptor. |
|
Public Methods
Protected Methods
Method |
Description |
|
_connect ( ) |
Opens a file descriptor to a new or existing file. |
|
_disconnect ( boolean $error = true ) |
Closes the file descriptor. |
|
Method Details
__construct()
public method
public __construct ( array $params = [] ) |
$params |
array |
Optional parameters:
- token_dir (string): The directory where to keep token files.
DEFAULT: System temporary directory |
__destruct()
public method
_connect()
protected method
Opens a file descriptor to a new or existing file.
_disconnect()
protected method
Closes the file descriptor.
Delete all expired connection IDs.
Property Details
$_connected protected_oe property
Boolean indicating whether or not we have an open file descriptor.
protected bool $_connected |
return |
boolean |
|
$_fd protected_oe property
Handle for the open file descriptor.
protected resource $_fd |
return |
resource |
|