PHP Class Sulu\Component\Security\Authorization\SecurityCondition

Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( $securityContext, $locale = null, $objectType = null, $objectId = null )
getLocale ( ) : string Returns the locale in which the security has to be checked.
getObjectId ( ) : mixed Returns the id of the object.
getObjectType ( ) : string Returns the type of the object.
getSecurityContext ( ) : string Returns the string representation of a security context.

Method Details

__construct() public method

public __construct ( $securityContext, $locale = null, $objectType = null, $objectId = null )

getLocale() public method

Returns the locale in which the security has to be checked.
public getLocale ( ) : string
return string

getObjectId() public method

Returns the id of the object.
public getObjectId ( ) : mixed
return mixed

getObjectType() public method

Returns the type of the object.
public getObjectType ( ) : string
return string

getSecurityContext() public method

Returns the string representation of a security context.
public getSecurityContext ( ) : string
return string