Cpanel::Postgres::listusers
This article documents the usage of the Cpanel::Postgres::listusers function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Synopsis
Cpanel::Postgres::listusers
Description
This function will output the names of all PostgreSQL users associated with a domain.
Variables
Input
None
Output
- dblist (string)
- Array of databases the user has access privileges for.
- user (string)
- Name of the PostgreSQL user.
- db (string)
- Database the user has access privileges for. Format accountuser_dbname
Examples
<?cp Postgres::listusers( [tr] [td]%[/td] [/tr] ,user, dblist: [table] : [tr][td]%[/td][/tr]: [/table], db) ?>
This example wil output rows of a table that contain the usernames of all PostgreSQL users associated with a domain as well as rows of a table containing the databases they have access to.
Copyright
Copyright 2007 cPanel Inc.
Topic revision: r2 - 07 Apr 2009 - 21:43:42 - Main.JustinSchaefer