Public Member Functions | |
addResourceId ($rId) | |
Adds one or more resource IDs to the list in the 'resourceIds' parameter. | |
enableType ($type, $enable) | |
Enables or disables one of the three types for the 'types' parameter. | |
getLimit () | |
INSERT BRIEF DESCRIPTION HERE. | |
getMode () | |
Retrieves the 'mode' parameter. | |
getObjectId () | |
Retrieves the 'objectId' parameter. | |
getObjectType () | |
INSERT BRIEF DESCRIPTION HERE. | |
getOffset () | |
INSERT BRIEF DESCRIPTION HERE. | |
getOperation () | |
INSERT BRIEF DESCRIPTION HERE. | |
getResourceIds () | |
Retrieves the 'resourceIds' parameter. | |
getTypes () | |
Retrieves the 'types' parameter. | |
setLimit ($limit) | |
INSERT BRIEF DESCRIPTION HERE. | |
setMode ($newMode) | |
Sets 'mode' parameter. | |
setObjectId ($id) | |
Sets the 'objectId' parameter. | |
setObjectType ($type) | |
INSERT BRIEF DESCRIPTION HERE. | |
setOffset ($offset) | |
INSERT BRIEF DESCRIPTION HERE. | |
setOperation ($op) | |
INSERT BRIEF DESCRIPTION HERE. | |
setResourceId ($rId) | |
Sets the 'resourceIds' parameter. |
Pass an instance of this object to certain TSDService methods to provide parameters to those methods. The following parameters are supported:
mode
: one of the TSD::MODE_*
constants, indicating which types of relations/alignments should be retrieved (approved, pending, etc.) types
: which of standards, textbooks and dictionary words (or combination thereof) should be consulted when, e.g., getting a list of alignments for a given resource resourceIds
: which CSERD resources to grab alignment/relationship info for objectId
: not used right now TSDRequest::addResourceId | ( | $ | rId | ) |
Adds one or more resource IDs to the list in the 'resourceIds' parameter.
$rId | [mixed]: scalar resource ID to add to request, or an array of them |
TSDRequest::enableType | ( | $ | type, | |
$ | enable | |||
) |
Enables or disables one of the three types for the 'types' parameter.
The three types can be turned on or off with a boolean flag passed to this method. By default, all three types are enabled, so you usually only need to selectively disable types that are not desired.
$type | [string]: one of the TYPE_* constants | |
$enable | [boolean]: whether to enable or disable the type |
TSDRequest::getLimit | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
TSDRequest::getMode | ( | ) |
Retrieves the 'mode' parameter.
TSDRequest::getObjectId | ( | ) |
Retrieves the 'objectId' parameter.
TSDRequest::getObjectType | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
TSDRequest::getOffset | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
TSDRequest::getOperation | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
TSDRequest::getResourceIds | ( | ) |
Retrieves the 'resourceIds' parameter.
TSDRequest::getTypes | ( | ) |
Retrieves the 'types' parameter.
TSDRequest::setLimit | ( | $ | limit | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$limit | [TYPE]: DESCRIPTION |
TSDRequest::setMode | ( | $ | newMode | ) |
Sets 'mode' parameter.
$newMode | [int]: one of the MODE_* constants |
TSDRequest::setObjectId | ( | $ | id | ) |
Sets the 'objectId' parameter.
$id | [mixed]: new value for 'objectId' parameter |
TSDRequest::setObjectType | ( | $ | type | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$type | [TYPE]: DESCRIPTION |
TSDRequest::setOffset | ( | $ | offset | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$offset | [TYPE]: DESCRIPTION |
TSDRequest::setOperation | ( | $ | op | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$op | [TYPE]: DESCRIPTION |
TSDRequest::setResourceId | ( | $ | rId | ) |
Sets the 'resourceIds' parameter.
You can either provide a single resource ID as an integer/string, or provide an array of IDs. Any IDs already in the request will be overwritten.
$rId | [mixed]: array of resource IDs or a single resource ID as a scalar |