PFAHandler, AliasHandler:

- move result() from AliasHandler to PFAHandler
- AliasHandler now extends PFAHandler


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1205 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent 14c5433faf
commit 7a9a993083

@ -6,7 +6,7 @@
* @property $username name of alias
* @property $return return of methods
*/
class AliasHandler {
class AliasHandler extends PFAHandler {
private $username = null;
@ -237,12 +237,6 @@ class AliasHandler {
}
}
/**
* @return return value of previously called method
*/
public function result() {
return $this->return;
}
}
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */

@ -1,5 +1,17 @@
<?php
class PFAHandler {
/**
* @return return value of previously called method
*/
public function result() {
return $this->return;
}
/**
* functions for basic input validation
*/
function _inp_num($val) {
return (int)($val);
}
@ -12,5 +24,6 @@ class PFAHandler {
# TODO: fetchmail specific. Not suited for mailbox/admin passwords.
return base64_encode($val);
}
}
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */

Loading…
Cancel
Save