PHP Class Content_Users_Manager, horde

Author: Chuck Hagenbuch ([email protected])
Author: Michael Rubinsky ([email protected])
Show file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_db Horde_Db_Adapter Database adapter
$_tables array Tables

Public Methods

Method Description
__construct ( Horde_Db_Adapter $db )
ensureUsers ( array $users ) : array Ensure that an array of users exist in storage. Create any that don't, return user_ids for all.
toDriver ( $value )

Protected Methods

Method Description
_t ( string $tableType ) : string Shortcut for getting a table name.

Method Details

__construct() public method

public __construct ( Horde_Db_Adapter $db )
$db Horde_Db_Adapter

_t() protected method

Shortcut for getting a table name.
protected _t ( string $tableType ) : string
$tableType string
return string Configured table name.

ensureUsers() public method

Ensure that an array of users exist in storage. Create any that don't, return user_ids for all.
public ensureUsers ( array $users ) : array
$users array An array of users. Values typed as an integer are assumed to already be an user_id.
return array An array of user_ids.

toDriver() public method

public toDriver ( $value )

Property Details

$_db protected property

Database adapter
protected Horde_Db_Adapter $_db
return Horde_Db_Adapter

$_tables protected property

Tables
protected array $_tables
return array