Public Member Functions | |
__construct ($constraints=null) | |
Constructs new CSERDuser object. | |
addcomment ($review, $comment= '', $timestamp= '') | |
Add new CSERDcomment object connected to this object. | |
addreview ($active=null, $type, $cserdId=null, $solicited=null, $state= '', $created= '', $modified= '0000-00-00 00:00:00', $cache= '', $project= '') | |
Add new CSERDreview object connected to this object. | |
adduserDetail ($detail, $data=null) | |
Add new CSERDuserDetail object connected to this object. | |
adduserLoginLog ($loginTime= '') | |
Add new CSERDuserLoginLog object connected to this object. | |
adduserPageviewLog ($URL=null, $pageviewTime= '') | |
Add new CSERDuserPageviewLog object connected to this object. | |
clearSessionData ($key=null) | |
Clear session data for a given key, or all session data. | |
getSessionData ($key) | |
Fetch additional data stored in this user object (with a key). | |
issetSessionData ($key) | |
Check to see if session data is set for a certain key. | |
listcomments ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children CSERDcomment objects. | |
listcommentsMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children CSERDcomment objects using joins. | |
listreviews ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children CSERDreview objects. | |
listreviewsMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children CSERDreview objects using joins. | |
listuserDetails ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children CSERDuserDetail objects. | |
listuserDetailsMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children CSERDuserDetail objects using joins. | |
listuserLoginLogs ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children CSERDuserLoginLog objects. | |
listuserLoginLogsMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children CSERDuserLoginLog objects using joins. | |
listuserPageviewLogs ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children CSERDuserPageviewLog objects. | |
listuserPageviewLogsMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children CSERDuserPageviewLog objects using joins. | |
Static Public Member Functions | |
static | exists ($constraints=array()) |
Checks to see if object exists according to constraints. | |
static | getAttributesStatic () |
Retrieves attributes and information about them. | |
static | getList ($constraints=array(), $limit=array(), $order=array(), $count=false) |
Retrieves list of CSERDuser objects. | |
static | getTableNameStatic () |
Retrieves name of table represented by this class. | |
static | retrieve ($constraints=array(), $checkOnly=false) |
Retrieves a single object of this type, given the constraints. | |
Static Public Attributes | |
static | $ATTRIBUTES |
Attributes for this entity and information about them. | |
Protected Attributes | |
$sessionData | |
Misc session data stored for this user by web app controllers. |
INSERT DESCRIPTION HERE
CSERDuser::__construct | ( | $ | constraints = null |
) |
Constructs new CSERDuser object.
This method will only populate the object if a constraints array is passed in, to use for selecting the information for the object from the database (see Guide to Database Constraints).
$constraints | [array]: constraints array for populating |
CSERDuser::addcomment | ( | $ | review, | |
$ | comment = '' , |
|||
$ | timestamp = '' | |||
) |
Add new CSERDcomment object connected to this object.
This method creates a new CSERDcomment and makes sure that relevant foreign keys in that object point to this object and any other necessary objects as passed in as parameters to this method. For parameters that request another model object, you may either pass in the model object itself, or the id value for that object, as would be used in the foreign key of the new CSERDcomment object. For example, if the new object needs to point to both this object and, say, a user object, then you can either pass in a user object, or a user ID.
$review | [CSERDreview]: Can also be foreign key value. INSERT DESCRIPTION HERE | |
$comment | [string]: INSERT DESCRIPTION HERE | |
$timestamp | [time]: INSERT DESCRIPTION HERE |
CSERDuser::addreview | ( | $ | active = null , |
|
$ | type, | |||
$ | cserdId = null , |
|||
$ | solicited = null , |
|||
$ | state = '' , |
|||
$ | created = '' , |
|||
$ | modified = '0000-00-00 00:00:00' , |
|||
$ | cache = '' , |
|||
$ | project = '' | |||
) |
Add new CSERDreview object connected to this object.
This method creates a new CSERDreview and makes sure that relevant foreign keys in that object point to this object and any other necessary objects as passed in as parameters to this method. For parameters that request another model object, you may either pass in the model object itself, or the id value for that object, as would be used in the foreign key of the new CSERDreview object. For example, if the new object needs to point to both this object and, say, a user object, then you can either pass in a user object, or a user ID.
$active | [int]: INSERT DESCRIPTION HERE | |
$type | [string]: INSERT DESCRIPTION HERE | |
$cserdId | [int]: INSERT DESCRIPTION HERE | |
$solicited | [int]: INSERT DESCRIPTION HERE | |
$state | [string]: INSERT DESCRIPTION HERE | |
$created | [time]: INSERT DESCRIPTION HERE | |
$modified | [time]: INSERT DESCRIPTION HERE | |
$cache | [string]: INSERT DESCRIPTION HERE | |
$project | [string]: INSERT DESCRIPTION HERE |
CSERDuser::adduserDetail | ( | $ | detail, | |
$ | data = null | |||
) |
Add new CSERDuserDetail object connected to this object.
This method creates a new CSERDuserDetail and makes sure that relevant foreign keys in that object point to this object and any other necessary objects as passed in as parameters to this method. For parameters that request another model object, you may either pass in the model object itself, or the id value for that object, as would be used in the foreign key of the new CSERDuserDetail object. For example, if the new object needs to point to both this object and, say, a user object, then you can either pass in a user object, or a user ID.
$detail | [CSERDdetail]: Can also be foreign key value. INSERT DESCRIPTION HERE | |
$data | [string]: INSERT DESCRIPTION HERE |
CSERDuser::adduserLoginLog | ( | $ | loginTime = '' |
) |
Add new CSERDuserLoginLog object connected to this object.
This method creates a new CSERDuserLoginLog and makes sure that relevant foreign keys in that object point to this object and any other necessary objects as passed in as parameters to this method. For parameters that request another model object, you may either pass in the model object itself, or the id value for that object, as would be used in the foreign key of the new CSERDuserLoginLog object. For example, if the new object needs to point to both this object and, say, a user object, then you can either pass in a user object, or a user ID.
$loginTime | [time]: INSERT DESCRIPTION HERE |
CSERDuser::adduserPageviewLog | ( | $ | URL = null , |
|
$ | pageviewTime = '' | |||
) |
Add new CSERDuserPageviewLog object connected to this object.
This method creates a new CSERDuserPageviewLog and makes sure that relevant foreign keys in that object point to this object and any other necessary objects as passed in as parameters to this method. For parameters that request another model object, you may either pass in the model object itself, or the id value for that object, as would be used in the foreign key of the new CSERDuserPageviewLog object. For example, if the new object needs to point to both this object and, say, a user object, then you can either pass in a user object, or a user ID.
$URL | [string]: INSERT DESCRIPTION HERE | |
$pageviewTime | [time]: INSERT DESCRIPTION HERE |
CSERDuser::clearSessionData | ( | $ | key = null |
) |
Clear session data for a given key, or all session data.
If a key is passed, clear session data that has previously been stored for that key using setSessionData(). If no key is passed, clear all session data stored for this user.
$key | [string]: The name of session data to clear, or blank if all session data should be cleared. |
static CSERDuser::exists | ( | $ | constraints = array() |
) | [static] |
Checks to see if object exists according to constraints.
This is simply an alias for retrieve($constraints, true);
$constraints | [array]: constraints used to check for existence of object |
static CSERDuser::getAttributesStatic | ( | ) | [static] |
Retrieves attributes and information about them.
This method is needed because there is no generic way to get at the $ATTRIBUTES static member variable without this kind of method. If you do not need to generically grab the attributes of a model class, just use ModelClass::$ATTRIBUTES
or $obj->getAttributes()
.
static CSERDuser::getList | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) | [static] |
Retrieves list of CSERDuser objects.
See Guide to Database Constraints for more on how to construct constraint and other arrays for this method.
$constraints | [array]: limit results by criteria | |
$limit | [array]: limit results by count | |
$order | [array]: change ordering of results | |
$count | [boolean]: if true, return the number of objects that would have been returned, rather than the objects themselves |
CSERDuser::getSessionData | ( | $ | key | ) |
Fetch additional data stored in this user object (with a key).
Retrieve additional data stored in the user object using setSessionData().
$key | [string]: The name of the stored session data (i.e., scope.attribute) |
static CSERDuser::getTableNameStatic | ( | ) | [static] |
Retrieves name of table represented by this class.
CSERDuser::issetSessionData | ( | $ | key | ) |
Check to see if session data is set for a certain key.
$key | [string]: A key to check for stored session data (i.e., scope.attribute) |
CSERDuser::listcomments | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children CSERDcomment objects.
This method retrieves objects of type CSERDcomment which have their authorId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves |
$count
is true, or null on error CSERDuser::listcommentsMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children CSERDcomment objects using joins.
This method retrieves objects of type CSERDcomment which have their authorId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2. Unlike listcomments(), this method joins the child objects with their parent objects.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves | |
$depth | [int]: how deep to traverse dependencies when doing joins |
$count
is true, or null on error CSERDuser::listreviews | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children CSERDreview objects.
This method retrieves objects of type CSERDreview which have their ownerId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves |
$count
is true, or null on error CSERDuser::listreviewsMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children CSERDreview objects using joins.
This method retrieves objects of type CSERDreview which have their ownerId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2. Unlike listreviews(), this method joins the child objects with their parent objects.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves | |
$depth | [int]: how deep to traverse dependencies when doing joins |
$count
is true, or null on error CSERDuser::listuserDetails | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children CSERDuserDetail objects.
This method retrieves objects of type CSERDuserDetail which have their userId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves |
$count
is true, or null on error CSERDuser::listuserDetailsMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children CSERDuserDetail objects using joins.
This method retrieves objects of type CSERDuserDetail which have their userId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2. Unlike listuserDetails(), this method joins the child objects with their parent objects.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves | |
$depth | [int]: how deep to traverse dependencies when doing joins |
$count
is true, or null on error CSERDuser::listuserLoginLogs | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children CSERDuserLoginLog objects.
This method retrieves objects of type CSERDuserLoginLog which have their userId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves |
$count
is true, or null on error CSERDuser::listuserLoginLogsMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children CSERDuserLoginLog objects using joins.
This method retrieves objects of type CSERDuserLoginLog which have their userId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2. Unlike listuserLoginLogs(), this method joins the child objects with their parent objects.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves | |
$depth | [int]: how deep to traverse dependencies when doing joins |
$count
is true, or null on error CSERDuser::listuserPageviewLogs | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children CSERDuserPageviewLog objects.
This method retrieves objects of type CSERDuserPageviewLog which have their userId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves |
$count
is true, or null on error CSERDuser::listuserPageviewLogsMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children CSERDuserPageviewLog objects using joins.
This method retrieves objects of type CSERDuserPageviewLog which have their userId field equal to the value of this object's userId field. The constraints, limit and order parameters can be used to trim down and order the results. See Guide to Database Constraints for more on using database constraints with DBI2/SModel2. Unlike listuserPageviewLogs(), this method joins the child objects with their parent objects.
$constraints | [array]: constraints array to further limit results | |
$limit | [array]: limit array to control how many and which results are returned | |
$order | [array]: order array to control the ordering of the returned results | |
$count | [boolean]: if true, only return the count of how many objects would be returned, rather than the objects themselves | |
$depth | [int]: how deep to traverse dependencies when doing joins |
$count
is true, or null on error static CSERDuser::retrieve | ( | $ | constraints = array() , |
|
$ | checkOnly = false | |||
) | [static] |
Retrieves a single object of this type, given the constraints.
Use this method instead of the constructor since the constructor cannot return error conditions properly.
$constraints | [array]: constraints to use when retrieving object | |
$checkOnly | [boolean]: if true, just return whether the row exists in the DB |