DataService::byId
Return the given element, searching by ID
Signature
public function byId(string
$callerClass,
int
$id,
[boolean
$cache = true,
[string
$requiredPerm = 'View']] )
Parameters
$callerClass
— string- The class of the object to be returned
$id
— int- The id of the element
$cache
— boolean- See {@link get_one()}
$requiredPerm
— string
Returns
- DataObject
- The element