__construct()
getAuthType()
getIndex()
getLogin()
getName()
getValue()
inactivityTime()
isDefaultKey()
isDefaultSetting()
isLoggedIn()
isReadOnly()
isSessionValid()
isVisible()
login()
logout()
query()
setDefaults()
setValue()
untested()
connect()
getErrorMessage()
getErrorNum()
getMethod()
getPassword()
setLogin()
$custom
$default
$index
$type
This abstract class provides the basic variables and methods.
package | phpLDAPadmin |
---|---|
subpackage | DataStore |
__construct($index)
getAuthType()
getIndex()
getLogin($method)
If this returns '', we are logged in with anonymous
getName()
getValue($key, $setting, $fatal)
inactivityTime()
If there is not timeout, this function will return null.
isDefaultKey($key)
isDefaultSetting($key, $setting)
isLoggedIn($method)
isReadOnly()
isSessionValid()
isVisible()
login($user, $pass, $method)
method: 'user', connect with auth_id
method: '
logout($method)
query($query, $method, $index, $debug)
setDefaults($defaults)
setValue($key, $setting, $value)
untested()
connect($method, $debug)
getErrorMessage()
getErrorNum()
getMethod(int $method) : string
If a method is passed, then it will be passed back. If no method is passed, then we'll check to see if the user is logged in. If they are, then 'user' is used, otherwise 'anon' is used.
int
Server ID
string
Connection MethodgetPassword($method)
setLogin($user, $pass, $method)
$custom
$default
$index
$type