Documentation

Content_Users_Manager
in package

Copyright 2008-2017 Horde LLC (http://www.horde.org/)

Tags
author

Chuck Hagenbuch chuck@horde.org

author

Michael Rubinsky mrubinsk@horde.org

license

http://www.horde.org/licenses/bsd BSD

category

Horde

Table of Contents

$_db  : Horde_Db_Adapter
Database adapter
$_tables  : array<string|int, mixed>
Tables
__construct()  : mixed
ensureUsers()  : array<string|int, mixed>
Ensure that an array of users exist in storage. Create any that don't, return user_ids for all.
toDriver()  : mixed
_t()  : string
Shortcut for getting a table name.

Properties

$_db

Database adapter

protected Horde_Db_Adapter $_db

$_tables

Tables

protected array<string|int, mixed> $_tables = array('users' => 'rampage_users')

Methods

__construct()

public __construct(Horde_Db_Adapter $db) : mixed
Parameters
$db : Horde_Db_Adapter
Return values
mixed

ensureUsers()

Ensure that an array of users exist in storage. Create any that don't, return user_ids for all.

public ensureUsers(array<string|int, mixed> $users) : array<string|int, mixed>
Parameters
$users : array<string|int, mixed>

An array of users. Values typed as an integer are assumed to already be an user_id.

Return values
array<string|int, mixed>

An array of user_ids.

toDriver()

public toDriver(mixed $value) : mixed
Parameters
$value : mixed
Return values
mixed

_t()

Shortcut for getting a table name.

protected _t(string $tableType) : string
Parameters
$tableType : string
Return values
string

Configured table name.

Search results