Class cApiUserPasswordRequestCollection
User password request collection
-
cGenericDb
-
cItemBaseAbstract
-
ItemCollection
-
cApiUserPasswordRequestCollection
Methods summary
public
|
#
__construct( string|boolean $where = false )
Constructor to create an instance of this class.
Constructor to create an instance of this class.
Parameters
- $where
string|boolean $where [optional] The where clause in the select, usable to run select by
creating the instance.
Throws
Overrides
|
public
cApiUserPasswordRequest
|
#
createNewItem( string|array $data = NULL )
Create a user password request by user id.
Create a user password request by user id.
Parameters
- $data
string|array $data [optional] optional parameter for direct input of primary key value
(string) or multiple column name - value pairs
Returns
Overrides
|
public
boolean
|
#
deleteByUserId( integer $userid )
Removes the specified entries from the database by user's id.
Removes the specified entries from the database by user's id.
Parameters
- $userid
integer $userid Specifies the user id
Returns
boolean True if the delete was successful
|
public
boolean
|
#
deleteByToken( integer $token )
Removes the specified entries from the database by token.
Removes the specified entries from the database by token.
Parameters
- $token
integer $userid Specifies the user id
Returns
boolean True if the delete was successful
|
public
array
|
#
fetchAvailableRequests( string $userid = false, string $orderBy = 'id_pwreq ASC' )
Returns all password requests available in the system
Returns all password requests available in the system
Parameters
- $userid
string $userid [optional] search for a specific user id
- $orderBy
string $orderBy [optional] SQL order by part
Returns
array
|
public
array
|
#
fetchCurrentRequests( string $userid = false )
Returns all non expired password requests
Returns all non expired password requests
Parameters
- $userid
string $userid [optional] search for a specific user id
Returns
array
|
Methods inherited from ItemCollection
_buildGroupWhereStatements(),
_buildWhereStatements(),
_delete(),
_deleteMultiple(),
_fetchJoinTables(),
_findReverseJoinPartner(),
_initializeDriver(),
_recursiveStructuredFetch(),
_resolveLinks(),
_setItemClass(),
_setJoinPartner(),
addResultField(),
copyItem(),
count(),
delete(),
deleteBy(),
deleteByWhereClause(),
deleteWhere(),
deleteWhereGroup(),
exists(),
fetchArray(),
fetchById(),
fetchObject(),
fetchTable(),
flexSelect(),
getAllIds(),
getFieldsByWhereClause(),
getIdsByWhereClause(),
link(),
loadItem(),
next(),
query(),
queryAndFetchStructured(),
removeResultField(),
resetQuery(),
select(),
setEncoding(),
setGroupCondition(),
setInnerGroupCondition(),
setLimit(),
setOrder(),
setWhere(),
setWhereGroup()
|
Properties inherited from ItemCollection
$_JoinPartners,
$_aOperators,
$_bAllMode,
$_collectionCache,
$_driver,
$_encoding,
$_forwardJoinPartners,
$_groupConditions,
$_innerGroupConditions,
$_itemClass,
$_itemClassInstance,
$_iteratorItem,
$_lastSQL,
$_limitCount,
$_limitStart,
$_links,
$_order,
$_resultFields,
$_where,
$_whereRestriction,
$objects
|