This function gets the OwnerID for a specific table when Advanced Security options like Users can see and edit their own data are in use.
Syntax
Security::getOwnerId($table)
Arguments
$table
the name of the table.
Return value
Returns the OwnerID for the specified table.
Example
This example shows how to output the current user data:
$table = "table1";
echo (Security::getOwnerId($table));
Sample output
1
See also: