Modules/Default/User/Model/User.php

Show: inherited
Table of Contents

\Conjoon_Modules_Default_User_Model_User

Package: Conjoon\Model

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

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

Properties

Propertyprotectedstring  $_name= ''users''

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

Default value'users'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
methodpublicgetDecoratableMethods( ) : void

methodpublicgetRepresentedEntity( ) : void

methodpublicgetTablePrefix( ) : String
staticinherited

Returns the table prefix.

Inherited from: \Conjoon_Db_Table::getTablePrefix()
Returns
Type Description
String
methodpublicgetUser( integer $id ) : \Conjoon_User

Looks up the row with the primary key $id, fetches the data and creates a new instance of Conjoon_User out of it or returns the data as fetched from the table.

Parameters
Name Type Description
$id integer
Returns
Type Description
\Conjoon_User or null if no data with the primary key $id exists.
Throws
Exception Description
\Conjoon_BeanContext_Exception The method will throw an exception of the type Conjoon_BeanContext_Exception if the BeanContext-object Conjoon_User could not be created automatically.
methodpublicgetUserForUserNameCredentials( string $userName, string $password ) : \Zend_Db_Table_Row

Returs the row that matches both the username and the password.

Parameters
Name Type Description
$userName string
$password string
Returns
Type Description
\Zend_Db_Table_Row
methodpublicgetUserNameCount( string $userName ) : integer

Returns the number of users that share the same username, in case the index on the user_name field is missing.

Parameters
Name Type Description
$userName string
Returns
Type Description
integer
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.