phpldapadmin/lib/EntryFactory.php
2009-06-30 20:46:00 +10:00

25 lines
536 B
PHP

<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/lib/EntryFactory.php,v 1.2 2007/12/15 07:50:32 wurley Exp $
/**
* @package phpLDAPadmin
* @author Xavier Bruyet
*
* Allows to create new entries
*/
abstract class EntryFactory {
public function newEntry($dn) {
global $ldapserver;
if ($dn && $ldapserver->dnExists($dn)) {
return $this->newEditingEntry($dn);
} else {
return $this->newCreatingEntry($dn);
}
}
abstract public function newEditingEntry($dn);
abstract public function newCreatingEntry($dn);
}
?>