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
Throws
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
Throws
|
public
boolean
|
#
deleteByToken( mixed $token )
Removes the specified entries from the database by token.
Removes the specified entries from the database by token.
Parameters
Returns
boolean True if the delete was successful
Throws
|
public
cApiUserPasswordRequest[]
|
#
fetchAvailableRequests( boolean $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
boolean $userid [optional] search for a specific user id
- $orderBy
string $orderBy [optional] SQL order by part
Returns
Throws
|
public
array
|
#
fetchCurrentRequests( boolean $userid = false )
Returns all non expired password requests
Returns all non expired password requests
Parameters
- $userid
boolean $userid [optional] search for a specific user id
Returns
array
Throws
|
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
|