PHP Class MenuHelper

Author: yusaku
显示文件 Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Property Type Description
$app CApplication
$menuOptions
$uri
$user

Public Methods

Method Description
__construct ( array $menuOptions, OEWebUser $user, $uri = '' )
getApp ( ) : CApplication
render ( ) : string
setApp ( CApplication $app )

Protected Methods

Method Description
formatMenuOptions ( array $menuOptions ) : array
getAuthItemParams ( array $params = [] ) : array Map auth item param specifications to actual values to pass for access checking

Method Details

__construct() public method

public __construct ( array $menuOptions, OEWebUser $user, $uri = '' )
$menuOptions array
$user OEWebUser

formatMenuOptions() protected method

protected formatMenuOptions ( array $menuOptions ) : array
$menuOptions array
return array

getApp() public method

public getApp ( ) : CApplication
return CApplication

getAuthItemParams() protected method

Map auth item param specifications to actual values to pass for access checking
protected getAuthItemParams ( array $params = [] ) : array
$params array
return array

render() public method

public render ( ) : string
return string

setApp() public method

public setApp ( CApplication $app )
$app CApplication

Property Details

$app protected_oe property

protected CApplication $app
return CApplication

$menuOptions protected_oe property

protected $menuOptions

$uri protected_oe property

protected $uri

$user protected_oe property

protected $user