Vilma_Driver::getAddresses PHP Method

getAddresses() public method

Returns a list of all users, aliases, or groups and forwards for a domain.
public getAddresses ( string $domain, string $type = 'all', string $key = 'user_name', integer $direction ) : array
$domain string Domain on which to search.
$type string Only return a specific type. One of 'all', 'user', 'alias', 'forward', or 'group'.
$key string Sort list by this key.
$direction integer Sort direction.
return array Account information for this domain.
    public function getAddresses($domain, $type = 'all', $key = 'user_name', $direction = 0)
    {
        $addresses = $this->_getAddresses($domain, $type);
        Horde_Array::arraySort($addresses, $key, $direction, true);
        return $addresses;
    }