'phptype' The database type (e.g. 'pgsql', 'mysql', etc.). 'table' The name of the foo table in 'database'. 'charset' The database's internal charset.Required by some database implementations:
'database' The name of the database. 'hostspec' The hostname of the database server. 'protocol' The communication protocol ('tcp', 'unix', etc.). 'username' The username with which to connect to the database. 'password' The password associated with 'username'. 'options' Additional options to pass to the database. 'tty' The TTY on which to connect to the database. 'port' The port on which to connect to the database.The table structure can be created by the scripts/sql/folks_foo.sql script. Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl. 파일 보기 프로젝트 열기: horde/horde
메소드 | 설명 | |
---|---|---|
__construct ( array $params = [] ) | Constructs a new SQL storage object. | |
addUser ( $user, array $credentials ) : boolean | Adds a set of authentication credentials. | |
countUsers ( $criteria = [] ) | Count users by attributes | |
deleteOnlineUser ( $user ) | Remove user if is online | |
getUsers ( $criteria = [], $from, $count ) | Get users by attributes | |
getViews ( ) | Get user groups | |
updateComments ( string $user, $reset = false ) | Update user comments count | |
userExists ( string $user ) : boolean | Check if user exist |
메소드 | 설명 | |
---|---|---|
_deleteActivity ( string $scope, integer $date, string $user ) : true | Delete users activity | |
_deleteImage ( string $user ) | Delete user image | |
_deleteOnlineStatus ( $to ) | Delete users online | |
_deleteSavedSearch ( string $name ) | Delete saved search | |
_deleteUser ( string $user ) : boolean | Delete user | |
_getActivity ( string $user, $limit ) : array | Get user's activity | |
_getCryptedPassword ( string $user ) : string | Formats a password using the current encryption. | |
_getOnlineUsers ( ) | Get usersnames online | |
_getProfile ( string $user ) | Get user profile | |
_getRandomUsers ( integer $limit = 10, boolean $online = false ) : array | Get random users | |
_getRecentVisitors ( integer $limit = 10 ) : array | Get last visitors | |
_getSavedSearch ( ) : array | Get saved search | |
_getSearchCriteria ( string $name ) : array | Get saved search criteria | |
_logActivity ( string $message, string $scope, string $user ) : true | Log users actions | |
_logView ( $id ) | Log user view | |
_saveProfile ( array $data, string $user ) | Save basic user profile | |
_saveSearch ( string $criteria, string $name ) | Save search criteria | |
_updateOnlineStatus ( ) | Get usersnames online |
메소드 | 설명 | |
---|---|---|
_buildWhere ( $criteria = [] ) : array | Build attributes query | |
_connect ( ) : boolean | Attempts to open a persistent connection to the SQL server. |
public __construct ( array $params = [] ) | ||
$params | array | A hash containing connection parameters. |
protected _deleteImage ( string $user ) | ||
$user | string | Username |
protected _deleteSavedSearch ( string $name ) | ||
$name | string | Username |
protected _deleteUser ( string $user ) : boolean | ||
$user | string | Username |
리턴 | boolean |
protected _getActivity ( string $user, $limit ) : array | ||
$user | string | Username |
리턴 | array | Activity log |
protected _getCryptedPassword ( string $user ) : string | ||
$user | string | User we are getting password for |
리턴 | string | The encrypted password. |
protected _getRecentVisitors ( integer $limit = 10 ) : array | ||
$limit | integer | Username to check |
리턴 | array | users |
protected _getSavedSearch ( ) : array | ||
리턴 | array | saved searches |
protected _getSearchCriteria ( string $name ) : array | ||
$name | string | Username |
리턴 | array | search criteria |
protected _saveProfile ( array $data, string $user ) | ||
$data | array | A hash containing profile data |
$user | string | Username |
protected _saveSearch ( string $criteria, string $name ) | ||
$criteria | string | Search criteria |
$name | string | Search name |
public updateComments ( string $user, $reset = false ) | ||
$user | string | Username |
public userExists ( string $user ) : boolean | ||
$user | string | Username |
리턴 | boolean |