Public Member Functions | |
__construct ($constraints=null) | |
Constructs new SDRProject object. | |
addSDRProjectField ($field, $indexOrder, $required= '') | |
Add new SDRProjectField object connected to this object. | |
addSDRResource ($cserdId, $url, $AverageReviewRating=null, $releaseFlag= '0', $cache= '', $created= '') | |
Add new SDRResource object connected to this object. | |
addSDRResourceProject ($cserd) | |
Add new SDRResourceProject object connected to this object. | |
listSDRProjectFields ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children SDRProjectField objects. | |
listSDRProjectFieldsMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children SDRProjectField objects using joins. | |
listSDRResourceProjects ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children SDRResourceProject objects. | |
listSDRResourceProjectsMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children SDRResourceProject objects using joins. | |
listSDRResources ($constraints=array(), $limit=array(), $order=array(), $count=false) | |
Retrieves list of children SDRResource objects. | |
listSDRResourcesMulti ($constraints=array(), $limit=array(), $order=array(), $count=false, $depth=1) | |
Retrieves list of children SDRResource 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 SDRProject 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. |
A project within which metadata items are grouped (i.e., CSERD or Interactivate)
SDRProject::__construct | ( | $ | constraints = null |
) |
Constructs new SDRProject 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 |
SDRProject::addSDRProjectField | ( | $ | field, | |
$ | indexOrder, | |||
$ | required = '' | |||
) |
Add new SDRProjectField object connected to this object.
This method creates a new SDRProjectField 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 SDRProjectField 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.
$field | [SDRField]: Can also be foreign key value. INSERT DESCRIPTION HERE | |
$indexOrder | [int]: INSERT DESCRIPTION HERE | |
$required | [string]: INSERT DESCRIPTION HERE |
SDRProject::addSDRResource | ( | $ | cserdId, | |
$ | url, | |||
$ | AverageReviewRating = null , |
|||
$ | releaseFlag = '0' , |
|||
$ | cache = '' , |
|||
$ | created = '' | |||
) |
Add new SDRResource object connected to this object.
This method creates a new SDRResource 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 SDRResource 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.
$cserdId | [int]: INSERT DESCRIPTION HERE | |
$url | [string]: INSERT DESCRIPTION HERE | |
$AverageReviewRating | [float]: INSERT DESCRIPTION HERE | |
$releaseFlag | [int]: INSERT DESCRIPTION HERE | |
$cache | [string]: INSERT DESCRIPTION HERE | |
$created | [time]: INSERT DESCRIPTION HERE |
SDRProject::addSDRResourceProject | ( | $ | cserd | ) |
Add new SDRResourceProject object connected to this object.
This method creates a new SDRResourceProject 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 SDRResourceProject 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.
$cserd | [SDRResource]: Can also be foreign key value. INSERT DESCRIPTION HERE |
static SDRProject::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 SDRProject::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 SDRProject::getList | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) | [static] |
Retrieves list of SDRProject 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 |
static SDRProject::getTableNameStatic | ( | ) | [static] |
Retrieves name of table represented by this class.
SDRProject::listSDRProjectFields | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children SDRProjectField objects.
This method retrieves objects of type SDRProjectField which have their projectId field equal to the value of this object's id 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 SDRProject::listSDRProjectFieldsMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children SDRProjectField objects using joins.
This method retrieves objects of type SDRProjectField which have their projectId field equal to the value of this object's id 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 listSDRProjectFields(), 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 SDRProject::listSDRResourceProjects | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children SDRResourceProject objects.
This method retrieves objects of type SDRResourceProject which have their projectId field equal to the value of this object's id 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 SDRProject::listSDRResourceProjectsMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children SDRResourceProject objects using joins.
This method retrieves objects of type SDRResourceProject which have their projectId field equal to the value of this object's id 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 listSDRResourceProjects(), 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 SDRProject::listSDRResources | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false | |||
) |
Retrieves list of children SDRResource objects.
This method retrieves objects of type SDRResource which have their primaryProject field equal to the value of this object's id 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 SDRProject::listSDRResourcesMulti | ( | $ | constraints = array() , |
|
$ | limit = array() , |
|||
$ | order = array() , |
|||
$ | count = false , |
|||
$ | depth = 1 | |||
) |
Retrieves list of children SDRResource objects using joins.
This method retrieves objects of type SDRResource which have their primaryProject field equal to the value of this object's id 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 listSDRResources(), 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 SDRProject::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 |