Modules/Default/Registry/Model/Registry.php

Show: inherited
Table of Contents

\Conjoon_Modules_Default_Registry_Model_Registry

Package: Conjoon\Model

Table data gateway. Models the table <tt>registry_values</tt>.

Parent(s)
\Conjoon_Db_Table < \Zend_Db_Table
Author
Thorsten Suckow-Homberg  
Category
Model  
Uses
\Conjoon_Db_Table  

Properties

Propertyprotectedstring  $_name= ''registry''

The name of the table in the underlying datastore this class represents, without any prefix defined by Conjoon_Db_Table::setTablePrefix

Default value'registry'Details
Type
string
Propertyprotectedstring  $_primary= ''id''

The name of the column that denotes the primary key for this table

Default value'id'Details
Type
string
PropertyprotectedString  $_tblPrefix= '""'
staticinherited

Default table prefix.

Inherited from: \Conjoon_Db_Table::$$_tblPrefix
Default value""Details
Type
String
Inherited_from
\Conjoon_Db_Table::$$_tblPrefix  

Methods

methodpublic__construct( string | array $config = array(), \unknown_type $definition = null ) : void
inherited

__construct() - For concrete implementation of Conjoon_Db_Table

Inherited from: \Conjoon_Db_Table::__construct()

This constructor automatically prepends the prefix as defined using setTablePrefix() to this table's name.

Parameters
Name Type Description
$config string | array

string can reference a Zend_Registry key for a db adapter OR it can refernece the name of a table

$definition \unknown_type
methodpublicgetRegistryForUser( integer $userId ) : array

Returns the registry in an array with their values. The registry entry's values will be available in the array index "values", which either is an empty array if no values are available or an array indexed with the field names of the registry_values table (see Conjoon_Modules_Default_Registry_Model_RegistryValues).

Parameters
Name Type Description
$userId integer

the id of the user to fetch the registry entries for, or 0 to return system registry settings.

Returns
Type Description
array
methodpublicgetTablePrefix( ) : String
staticinherited

Returns the table prefix.

Inherited from: \Conjoon_Db_Table::getTablePrefix()
Returns
Type Description
String
methodpublicsetTablePrefix( String $prefix ) : void
staticinherited

Sets the table prefix.

Inherited from: \Conjoon_Db_Table::setTablePrefix()
Parameters
Name Type Description
$prefix String
Documentation was generated by DocBlox 0.18.1.