aboutsummaryrefslogtreecommitdiffstats
path: root/packages/authng/pkg/authng_classdefs.inc
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2007-09-12 20:48:25 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2007-09-12 20:48:25 +0000
commitcb5c3456a28597699295910383972a5af6b7a5e9 (patch)
tree73c49507682f17686d27f1fa9d8afe2ec4cfc7d5 /packages/authng/pkg/authng_classdefs.inc
parentafd45e6cdda4eb0197a1bfb52422477c8816886a (diff)
downloadpfsense-packages-cb5c3456a28597699295910383972a5af6b7a5e9.tar.gz
pfsense-packages-cb5c3456a28597699295910383972a5af6b7a5e9.tar.bz2
pfsense-packages-cb5c3456a28597699295910383972a5af6b7a5e9.zip
* bug fixing
* added initial figures to doc dir
Diffstat (limited to 'packages/authng/pkg/authng_classdefs.inc')
-rw-r--r--packages/authng/pkg/authng_classdefs.inc17
1 files changed, 15 insertions, 2 deletions
diff --git a/packages/authng/pkg/authng_classdefs.inc b/packages/authng/pkg/authng_classdefs.inc
index a64dc415..7315bb6f 100644
--- a/packages/authng/pkg/authng_classdefs.inc
+++ b/packages/authng/pkg/authng_classdefs.inc
@@ -36,6 +36,19 @@
*/
/* ========================================================================== */
+class Object {
+ function Object() {
+ $args = func_get_args();
+ if (method_exists($this, '__destruct')) {
+ register_shutdown_function(array(&$this, '__destruct'));
+ }
+ call_user_func_array(array(&$this, '__construct'), $args);
+ }
+
+ function __construct() {
+ }
+}
+
class SingletonInterface extends Object {
function __construct() {
// Perform object initialization here.
@@ -64,7 +77,7 @@ class AuthMethodFactory extends SingletonInterface {
return parent::__getInstanceImp('AuthMethodFactory');
}
- function &getBackendByName($name) {
+ function &getAuthMethodByName($name) {
$result = null;
/* Each name links to an entry in config.xml
@@ -103,7 +116,7 @@ class BackendFactory extends SingletonInterface {
return parent::__getInstanceImp('BackendFactory');
}
- function &getAuthMethodByName($name) {
+ function &getBackendByName($name) {
$result = null;
/* Each name links to an entry in config.xml