PHP Class Content_Types_Manager, horde

Author: Chuck Hagenbuch ([email protected])
Author: Michael Rubinsky ([email protected])
Mostrar archivo 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 )
ensureTypes ( mixed $types ) : array Ensure that an array of types exist in storage. Create any that don't, return type_ids for all.

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.

ensureTypes() public method

Ensure that an array of types exist in storage. Create any that don't, return type_ids for all.
public ensureTypes ( mixed $types ) : array
$types mixed An array of types or single type value. Values typed as an integer are assumed to already be an type_id.
return array An array of type_ids.

Property Details

$_db protected_oe property

Database adapter
protected Horde_Db_Adapter $_db
return Horde_Db_Adapter

$_tables protected_oe property

Tables
protected array $_tables
return array