
Public Member Functions | |
| getResourceIdForURL ($url) | |
| Get the resource id (CSERD id) of an item given its URL. | |
| getURLForResourceId ($id) | |
| Get the URL of an item given its resource id (CSERD id). | |
| resourceIdExists ($id) | |
| Check to see whether a resource with a given ID exists in SDR. | |
| URLExists ($url) | |
| Check to see whether a resource with a given URL exists in SDR. | |
Static Public Member Functions | |
| static | getDBI () |
| Get the DBI to access the SDR database. | |
| static | init () |
| Initialize the SDR/CSERD services. | |
| static | isInitialized () |
| Check to see if SDR is initialized. | |
This class keeps track of the database connections to SDR. You can call getDBI() to get a direct connection to the Shodor metadata database. You can also use this class to look up basic information about metadata items, and access SDR-related constants, such as what methods the service provides.
Definition at line 13 of file SDR.php5.
| static SDR::getDBI | ( | ) | [static] |
Get the DBI to access the SDR database.
Definition at line 53 of file SDR.php5.
Referenced by TSD::init(), and SDRServiceCache::updateAverageReviewRating().
| SDR::getResourceIdForURL | ( | $ | url | ) |
Get the resource id (CSERD id) of an item given its URL.
| $url | [string]: The URL of the item |
Definition at line 85 of file SDR.php5.
References SDRService::getCserdIdForURL().
Referenced by TKSnapInteractivateLessonPreview::getParameters(), and TKSnapInteractivateInstructorPreview::getParameters().
| SDR::getURLForResourceId | ( | $ | id | ) |
Get the URL of an item given its resource id (CSERD id).
| $id | [int]: The resource id of the item |
Definition at line 95 of file SDR.php5.
References SDRService::getURLForCserdId().
Referenced by STransStdXML3Helper::processLinkXML().
| static SDR::init | ( | ) | [static] |
Initialize the SDR/CSERD services.
Connect to SDR database and store the DBI for other services/ applications to connect to SDR.
Definition at line 24 of file SDR.php5.
References SConfig::getDefault(), and SObject::getError().
| static SDR::isInitialized | ( | ) | [static] |
| SDR::resourceIdExists | ( | $ | id | ) |
Check to see whether a resource with a given ID exists in SDR.
| $id | [string]: The ResourceId (CSERD id) in question |
Definition at line 65 of file SDR.php5.
References SDRService::cserdIdExists().
| SDR::URLExists | ( | $ | url | ) |
Check to see whether a resource with a given URL exists in SDR.
| $url | [string]: The URL in question |
Definition at line 75 of file SDR.php5.
References SDRService::URLExists().
1.5.6