TwistPHP Documentation

getByGroup

File path: dist/twist/Core/Utilities/Asset.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

getByGroupGet all assets that of a asset group by Asset Group ID, this will also expand the asset to include a sub array of its type and group information

Parameters

Name Type Description
$intGroupIDintegern/a
[$strOrderBy = 'added']stringn/a
[$strOrderDirection = 'DESC']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intGroupID 124;
$strOrderBy 'added';
$strOrderDirection 'DESC';

//Call the function getByGroup with the example vars
Twist::Asset() -> getByGroup($intGroupID$strOrderBy$strOrderDirection);