Documentation

Content_Types_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
ensureTypes()  : array<string|int, mixed>
Ensure that an array of types exist in storage. Create any that don't, return type_ids for all.
_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('types' => 'rampage_types')

Methods

__construct()

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

ensureTypes()

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

public ensureTypes(mixed $types) : array<string|int, mixed>
Parameters
$types : mixed

An array of types or single type value. Values typed as an integer are assumed to already be an type_id.

Tags
throws
Content_Exception
Return values
array<string|int, mixed>

An array of type_ids.

_t()

Shortcut for getting a table name.

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

Configured table name.

Search results