Пример #1
0
 protected static function _getDriver($profile)
 {
     return jProfiles::getOrStoreInPool('jcache', $profile, array('jCache', '_loadDriver'), true);
 }
Пример #2
0
 /**
  * return a database connector. It uses a temporay pool of connection to reuse
  * currently opened connections.
  *
  * @param string  $name  profile name to use. if empty, use the default one
  * @return jDbConnection  the connector
  */
 public static function getConnection($name = '')
 {
     return jProfiles::getOrStoreInPool('jdb', $name, array('jDb', '_createConnector'));
 }
Пример #3
0
 /**
  * @param string $profile  the profile name
  */
 public static function get($profile = '')
 {
     return jProfiles::getOrStoreInPool('jsoapclient', $profile, array('jSoapClient', '_getClient'));
 }