summaryrefslogtreecommitdiff
path: root/lib/Kolab/FreeBusy/Directory.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-01-16 14:37:34 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-01-16 14:37:34 (GMT)
commit031d72d24e8fd9fb050ae928a69c9759b9d15870 (patch)
tree3d7fea781fea88ade62d6fc06f017fb5e0a3b3b9 /lib/Kolab/FreeBusy/Directory.php
parenta261ddd670c5617c996f4155dfea483228628ca6 (diff)
downloadkolab-freebusy-031d72d24e8fd9fb050ae928a69c9759b9d15870.tar.gz
Initial changes :-)
Diffstat (limited to 'lib/Kolab/FreeBusy/Directory.php')
-rw-r--r--lib/Kolab/FreeBusy/Directory.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Kolab/FreeBusy/Directory.php b/lib/Kolab/FreeBusy/Directory.php
index 25b9038..c16c666 100644
--- a/lib/Kolab/FreeBusy/Directory.php
+++ b/lib/Kolab/FreeBusy/Directory.php
@@ -1,11 +1,11 @@
<?php
-namespace Kolab;
+namespace Kolab\FreeBusy;
/**
* Abstract class representing an address directory for free/busy data lookups
*/
-abstract class FBDirectory
+abstract class Directory
{
protected $config;
@@ -18,11 +18,11 @@ abstract class FBDirectory
{
switch (strtolower($config['type'])) {
case 'ldap':
- return new FBDirectoryLDAP($config);
+ return new DirectoryLDAP($config);
- case 'default':
+ case 'static':
case 'external':
- return new FBDirectoryDefault($config);
+ return new DirectoryStatic($config);
default:
trigger_error("Invalid directory type '" . $config['type'] . "'!", E_USER_ERROR);
@@ -51,7 +51,7 @@ abstract class FBDirectory
// resolve user record first
if ($user = $this->resolve($user)) {
$fbsource = $this->config['fbsource'];
- if ($source = FBSource::Factory($fbsource)) {
+ if ($source = Source::Factory($fbsource)) {
// foward request to FBSource instance
return $source->getFreeBusyData($user, $extended);
}