Skip to content

Instantly share code, notes, and snippets.

@donquixote
Created November 5, 2012 16:15
Show Gist options
  • Select an option

  • Save donquixote/4018045 to your computer and use it in GitHub Desktop.

Select an option

Save donquixote/4018045 to your computer and use it in GitHub Desktop.
<?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