Modules/Default/Registry/Model/Registry.php
\Conjoon_Modules_Default_Registry_Model_Registry
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

string
$_name= ''registry''
The name of the table in the underlying datastore this class represents, without any prefix defined by Conjoon_Db_Table::setTablePrefix
'registry'Details- Type
- string

string
$_primary= ''id''
The name of the column that denotes the primary key for this table
'id'Details- Type
- string

String
$_tblPrefix= '""'
""Details- Type
- String
- Inherited_from
- \Conjoon_Db_Table::$$_tblPrefix
Methods

__construct(
string | array $config
=
array(), \unknown_type $definition
=
null
)
:
void__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.
| 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 |

getRegistryForUser(
integer $userId
)
:
arrayReturns 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).
| Name | Type | Description |
|---|---|---|
| $userId | integer | the id of the user to fetch the registry entries for, or 0 to return system registry settings. |
| Type | Description |
|---|---|
| array |