File path: dist/twist/Core/Utilities/Asset.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
getByType
— Get all assets of a particular type by Asset Type ID, this will also expand the asset to include a sub array of its type and group information
Name | Description |
---|---|
$intTypeID | n/a |
[$strOrderBy = 'added'] | n/a |
[$strOrderDirection = 'DESC'] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intTypeID = 124;
$strOrderBy = 'added';
$strOrderDirection = 'DESC';
//Call the function getByType with the example vars
Twist::Asset() -> getByType($intTypeID, $strOrderBy, $strOrderDirection);