Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Philipp Gerber: "

The product is so easy and super built that you can achieve visible and great success after a short time. Also very much possible with the product. A class product. I'm already looking forward to the next versions and extensions. Keep it up.

Support to the product is just perfect. Each Support request is quickly and very competent solved. Also various assistance, which does not fall into a support, are also perfectly processed. There is a direct wire to the manufacturer / developer and this is notth. Thanks for the class Support".

Dave Lantz: "I have to say that I simple love this product and its ease of use. I know that I have only tapped into about 20% of what it can do. In my business I come into a lot of contact with developers and I tell them all, that if they need an easy way to connect, report or work their databases they MUST check out your products".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

class PermissionSet

PermissionSet is a simple class that encapsulates object permissions and provide methods to query/change all or certain permissions. An instance of this class is passed to the OnGetCustomPagePermissions event to customize page-level permissions.

 

Querying permissions

The following methods can be used to query the current state of a class instance. All functions return Boolean.

 

 

Signature

Description

hasViewGrant()

Returns whether the current user can view records.

hasAddGrant()

Returns whether the current user can add records.

hasEditGrant()

Returns whether the current user can edit records.

hasDeleteGrant()

Returns whether the current user can delete records.

hasAdminGrant()

Returns whether the current user has admin privileges for the current page.

 

 

Changing permissions

The following methods can be used to change the current state of a class instance. All parameters are Boolean.

 

Signature

Description

setViewGrant($value)

Allows the current user to view records.

setAddGrant($value)

Allows the current user to add records.

setEditGrant($value)

Allows the current user to edit records.

setDeleteGrant($value)

Allows the current user to delete records.

setAdminGrant($value)

Grants the current user admin privileges for the current page.

setGrants($view, $add, $edit, $delete)

Sets all page permissions at once.



Prev Return to chapter overview Next