Public Member Functions | |
__construct ($conf) | |
close () | |
_restParse ($restful_args) | |
getSession ($session, $term) | |
getCacheForTerm ($term) | |
getBooklist ($section, $term) | |
getBioUrl ($id) | |
getDeptInfo ($abbreviation) | |
getClasses ($dept, $term) | |
getDepartments ($term) | |
getTerms () | |
eventLoop ($get, $post, $session, $server, $file) | |
contentType () | |
render () | |
help () |
Definition at line 36 of file api1c.php.
SOC_API1C::__construct | ( | $ | conf ) |
SOC_API1C::_restParse | ( | $ | restful_args ) |
_restParse - Parse the RESTful URI request.
$restful_args | - The RESTful part of the URI request |
Definition at line 74 of file api1c.php.
References SOC_Widget::error(), WSCORE2::errorCount(), and help().
Referenced by eventLoop().
SOC_API1C::close | ( | ) |
SOC_API1C::contentType | ( | ) |
SOC_API1C::eventLoop | ( | $ | get, |
$ | post, | ||
$ | session, | ||
$ | server, | ||
$ | file | ||
) |
eventLoop - process the request and update state
$get | - pass in $_GET |
$post | - pass in $_POST |
$session | - pass in $_POST |
$server | - pass in $_SERVER |
$file | - pass $_FILE |
Definition at line 564 of file api1c.php.
References _restParse(), SOC_Widget::error(), WSCORE2::errorCount(), SOC_Widget::errors(), getBioUrl(), getBooklist(), getClasses(), getDepartments(), getSession(), and getTerms().
SOC_API1C::getBioUrl | ( | $ | id ) |
getBioUrl - Private method for getting the Bio link of a faculty member
$id | - USC 7 digit employee ID used by SOAP service. |
Definition at line 328 of file api1c.php.
References SOC_Widget::error().
Referenced by eventLoop(), and getClasses().
SOC_API1C::getBooklist | ( | $ | section, |
$ | term | ||
) |
getBooklist - Get booklist URL from where bookstore dropped it off on www.usc.edu.
$section | - section number for booklist, e.g. a five digit code |
$term | - term for booklist, e.g. 20093 would be Fall 2009 |
Definition at line 254 of file api1c.php.
References SOC_Widget::error().
Referenced by eventLoop().
SOC_API1C::getCacheForTerm | ( | $ | term ) |
getCacheForTerm - list the top level entries for a given term.
$term |
Definition at line 226 of file api1c.php.
References SOC_Widget::error().
SOC_API1C::getClasses | ( | $ | dept, |
$ | term | ||
) |
getClasses - Populate the courses related information in the cache. JSON caches
$dept | the dept code |
$term | the term to populate for |
Definition at line 373 of file api1c.php.
References SOC_Widget::error(), WSCORE2::errorCount(), and getBioUrl().
Referenced by eventLoop().
SOC_API1C::getDepartments | ( | $ | term ) |
getDepartments -populate the department cache
$term | the term to populate for |
Definition at line 500 of file api1c.php.
References SOC_Widget::error().
Referenced by eventLoop().
SOC_API1C::getSession | ( | $ | session, |
$ | term | ||
) |
getSession - get session info and set Cache
$session | the dept code, e.g. 001, 002, 003 |
$term | the term to populate for |
Definition at line 193 of file api1c.php.
References SOC_Widget::error().
Referenced by eventLoop().
SOC_API1C::getTerms | ( | ) |
getTerms - Private method to populate the cache with term data
Definition at line 532 of file api1c.php.
References SOC_Widget::error().
Referenced by eventLoop().
SOC_API1C::help | ( | ) |
help - generate help display
Definition at line 717 of file api1c.php.
References WSCORE2::get().
Referenced by _restParse().
SOC_API1C::render | ( | ) |