PHP Class TinyAuth\View\Helper\AuthUserHelper

Inheritance: extends Cake\View\Helper, use trait TinyAuth\Auth\AclTrait, use trait TinyAuth\Auth\AuthUserTrait
显示文件 Open project: dereuromark/cakephp-tinyauth Class Usage Examples

Public Properties

Property Type Description
$helpers array

Public Methods

Method Description
__construct ( Cake\View\View $View, array $config = [] )
hasAccess ( array $url ) : boolean
link ( string $title, array $url, array $options = [] ) : string Options: - default: Default to show instead, defaults to empty string.
postLink ( string $title, array $url, array $options = [] ) : string Options: - default: Default to show instead, defaults to empty string.

Protected Methods

Method Description
_default ( string $title, array $options ) : string
_getUser ( ) : array

Method Details

__construct() public method

public __construct ( Cake\View\View $View, array $config = [] )
$View Cake\View\View The View this helper is being attached to.
$config array Configuration settings for the helper.

_default() protected method

protected _default ( string $title, array $options ) : string
$title string
$options array
return string

_getUser() protected method

protected _getUser ( ) : array
return array

hasAccess() public method

public hasAccess ( array $url ) : boolean
$url array
return boolean

Property Details

$helpers public_oe property

public array $helpers
return array