Configuration

Configuration keys for the Solar_Access_Adapter_Sql class.

owner_method

  • (array) An array of key-value pairs to map object class to a method in that class to determine if a user is the owner of that object. The key is the class name, the value is the method name within that class.

  • Default: array ( )

sql

  • (string|array) How to get the SQL object. If a string, is treated as a Solar_Registry::get() object name. If array, treated as config for a standalone Solar_Sql object.

  • Default: 'sql'

table

  • (string) Name of the table holding access data.

  • Default: 'acl'

flag_col

  • (string) Name of the column with privilege flag (the stored value in the column should be like a boolean, such as allow/deny, t/f, T/F, y/n, Y/N, or 0/1).

  • Default: 'flag'

type_col

  • (string) Name of the column with access type info ('handle' or 'role').

  • Default: 'type'

name_col

  • (string) Name of the column with the handle or role name.

  • Default: 'name'

class_col

  • (string) Name of the column with the class name.

  • Default: 'class_name'

action_col

  • (string) Name of the column with the action name.

  • Default: 'action_name'

order_col

  • (string) Order the results by this column.

  • Default: 'position'



Local