PHP Class CakeDC\Users\View\Helper\AuthLinkHelper

Inheritance: extends Cake\View\Helper\HtmlHelper
Show file Open project: CakeDC/users Class Usage Examples

Public Methods

Method Description
isAuthorized ( string | array | null $url = null ) : boolean Returns true if the target url is authorized for the logged in user
link ( string $title, string | array | null $url = null, array $options = [] ) : string | boolean Generate a link if the target url is authorized for the logged in user

Method Details

isAuthorized() public method

Returns true if the target url is authorized for the logged in user
public isAuthorized ( string | array | null $url = null ) : boolean
$url string | array | null url that the user is making request.
return boolean