Method to return the JAccessRules object for an asset. The returned object can optionally hold only the rules explicitly set for the asset or the summation of all inherited rules from parent assets and explicit rules.
Signature
public function getAssetRules(mixed
$asset,
[boolean
$recursive = false] )
Parameters
$asset
Integer asset id or the name of the asset as a string.
$recursive
True to return the rules object with inherited rules.