Created
November 5, 2012 16:15
-
-
Save donquixote/4018045 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function taleo_libraries_info() { | |
| return array( | |
| 'Taleo' => array( | |
| 'name' => 'Taleo PHP Library', | |
| 'xautoload' => '_taleo_xautoload', | |
| ), | |
| ); | |
| } | |
| function _taleo_xautoload($api) { | |
| $api->namespaceRoot('Guzzle', 'vendor/guzzle/guzzle/src'); | |
| $api->namespaceRoot('Monolog\Handler\StreamHandler', 'vendor/monolog/monolog/src'); | |
| $api->namespaceRoot('Monolog\Logger', 'vendor/monolog/monolog/src'); | |
| $api->namespaceRoot('Taleo\Main\Taleo', 'src'); | |
| } | |
| /** | |
| * Helper function to get all jobs from the Taleo database. | |
| */ | |
| function _taleo_getjobs() { | |
| $orgCode = variable_get('taleo_company_code', ''); | |
| $user = variable_get('taleo_username', ''); | |
| $password = variable_get('taleo_password', ''); | |
| $taleo = new \Taleo\Main\Taleo($user, $password, $orgCode); | |
| $taleo->login(); | |
| } | |
| // This returns an error: | |
| // Fatal error: Class 'Taleo\Main\Taleo' not found in | |
| // C:\cygwin\home\DELLAIEP\www\jobs.localhost\sites\all\modules\custom\taleo\taleo.module on line 461. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment