Beispiel #1
0
 public function __construct($configID = 'user_ldap')
 {
     $this->configID = $configID;
     $this->cache = \OC_Cache::getGlobalCache();
     $this->config['hasPagedResultSupport'] = function_exists('ldap_control_paged_result') && function_exists('ldap_control_paged_result_response');
     \OCP\Util::writeLog('user_ldap', 'PHP supports paged results? ' . print_r($this->config['hasPagedResultSupport'], true), \OCP\Util::INFO);
 }
Beispiel #2
0
 /**
  * @brief Constructor
  * @param $configPrefix a string with the prefix for the configkey column (appconfig table)
  * @param $configID a string with the value for the appid column (appconfig table) or null for on-the-fly connections
  */
 public function __construct($configPrefix = '', $configID = 'user_ldap')
 {
     $this->configPrefix = $configPrefix;
     $this->configID = $configID;
     $this->cache = \OC_Cache::getGlobalCache();
     $this->config['hasPagedResultSupport'] = function_exists('ldap_control_paged_result') && function_exists('ldap_control_paged_result_response');
 }
 /**
  * @brief Constructor
  * @param $configPrefix a string with the prefix for the configkey column (appconfig table)
  * @param $configID a string with the value for the appid column (appconfig table) or null for on-the-fly connections
  */
 public function __construct(ILDAPWrapper $ldap, $configPrefix = '', $configID = 'user_ldap')
 {
     parent::__construct($ldap);
     $this->configPrefix = $configPrefix;
     $this->configID = $configID;
     $this->configuration = new Configuration($configPrefix);
     $memcache = new \OC\Memcache\Factory();
     if ($memcache->isAvailable()) {
         $this->cache = $memcache->create();
     } else {
         $this->cache = \OC_Cache::getGlobalCache();
     }
     $this->hasPagedResultSupport = $this->ldap->hasPagedResultSupport();
     $this->doNotValidate = !in_array($this->configPrefix, Helper::getServerConfigurationPrefixes());
 }
Beispiel #4
0
 public function __construct(ILDAPWrapper $ldap)
 {
     $this->ldap = $ldap;
     $this->cache = \OC_Cache::getGlobalCache();
 }
Beispiel #5
0
 public function __construct()
 {
     $this->cache = \OC_Cache::getGlobalCache();
 }
Beispiel #6
0
 public function __construct($configID = 'user_ldap')
 {
     $this->configID = $configID;
     $this->cache = \OC_Cache::getGlobalCache();
 }
Beispiel #7
0
 public function clearCache()
 {
     $cache = OC_Cache::getGlobalCache();
     $cache->clear('core.css');
     $cache->clear('core.js');
 }