Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Security API > Methods

Security API :getPermissions

Scroll Prev Next More

 

Gets permissions for a certain table.

Syntax

Security::getPermissions($table)

Arguments

$table

the name of the table.

Return value

Returns an array with the table permissions.

Example

This example shows how to output the current user data:

 

$table = "table1";
print_r (Security::getPermissions($table));

Sample output

Array
(
   [A] => 1
   [E] => 1
   [D] => 1
   [S] => 1
   [P] => 1
   [I] => 1
)

See also:

Security API: setPermissions

Event: GetTablePermissions

User group permissions

About Security API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software