class \mpf\web\AccessMap

class \mpf\web\AccessMap

-no description found-

Attributes
public mixed $finalMap = []

-no description found-

public mixed $map = []

-no description found-

Methods

public mixed init (mixed $config)

  • $config

    -no description found-

-no description found-

protected mixed parseMap ()

Parse raw map to create a script readable one.

protected mixed parseMapRow (string $controller, string $action, string $rights)

  • $controller

    -no description found-

  • $action

    -no description found-

  • $rights

    -no description found-

Parses a single config row

public bool canAccess (string $controller, string $action, string $module = null)

  • $controller

    -no description found-

  • $action

    -no description found-

  • $module

    -no description found-

Check access for specified controller and action.

protected string getRightsFromMap (string $controller, string $action, string $module)

  • $controller

    -no description found-

  • $action

    -no description found-

  • $module

    -no description found-

Get rights associated for selected controller and action.

private string getRawAndModuleControllers (string $controller, string $module)

  • $controller

    -no description found-

  • $module

    -no description found-

Get variants to search in config for controller