Exemple #1
0
 /**
  * Ensures that the default options are initialized.
  *
  * @return array
  */
 private static function getSharedOptions()
 {
     if (isset(self::$_sharedOptions)) {
         return self::$_sharedOptions;
     }
     self::$_sharedOptions = array('profile' => new ClientProfile(), 'connections' => new ClientConnectionFactory(), 'cluster' => new ClientCluster(), 'prefix' => new ClientPrefix());
     return self::$_sharedOptions;
 }
Exemple #2
0
 private static function initializeOptionsHandlers()
 {
     if (!isset(self::$_optionsHandlers)) {
         self::$_optionsHandlers = self::getOptionsHandlers();
     }
 }