Exemple #1
0
 /**
 * Imports the datasources from the plugin and adds to the connection manager
 */
 public function __construct()
 {
     App::import(array('type' => 'File', 'name' => 'Gdata.GDATA_CONFIG', 'file' => 'config' . DS . 'gdata_config.php'));
     App::import(array('type' => 'File', 'name' => 'Gdata.GdataSource', 'file' => 'models' . DS . 'datasources' . DS . 'gdata_source.php'));
     App::import(array('type' => 'File', 'name' => 'Gdata.GdataPicasa', 'file' => 'models' . DS . 'datasources' . DS . 'gdata' . DS . 'gdata_picasa.php'));
     $config =& new GDATA_CONFIG();
     ConnectionManager::create('picasa', $config->picasa);
     parent::__construct();
 }
Exemple #2
0
 /**
  * Imports the datasources from the plugin and adds to the connection manager
  */
 function __construct()
 {
     App::import(array('type' => 'File', 'name' => 'Gdata.GDATA_CONFIG', 'file' => 'config' . DS . 'gdata_config.php'));
     App::import(array('type' => 'File', 'name' => 'Gdata.GdataSource', 'file' => 'models' . DS . 'datasources' . DS . 'gdata_source.php'));
     App::import(array('type' => 'File', 'name' => 'Gdata.GdataAnalyticsSource', 'file' => 'models' . DS . 'datasources' . DS . 'gdata' . DS . 'gdata_analytics.php'));
     $config =& new GDATA_CONFIG();
     ConnectionManager::create('analytics', $config->analytics);
     parent::__construct();
 }