Description:
Reads all available packages with state PACKAGE_ENABLED. If set param all_packages to true, also includes PACKAGE_LOCKED.
Input Variables:
$session_id, $params
Parameters (in $params):
all_packages (boolean)
Output:
Returns array with all selected package records.