Please enable JavaScript to view this site.

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

Security API: setOwnerId

Scroll Prev Next More

 

This function sets the OwnerID for a specific table when Advanced Security options like Users can see and edit their own data are in use.

Syntax

Security::setOwnerId($table, $ownerid)

Arguments

$table

the name of the table.

$ownerid

the owner id.

Return value

No return value.

Example

This example shows how to output the current user data:

 

$table = "posts";
$ownerid = "1" ;
Security::setOwnerId($table, $ownerid);

See also:

Security API: getOwnerId

Advanced security settings

About Security API

 

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