TwistPHP Documentation

getByType

File path: dist/twist/Core/Helpers/Asset.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

getByTypeGet 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

Parameters

Name Type Description
$intTypeIDintegern/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
$intTypeID 124;
$strOrderBy 'added';
$strOrderDirection 'DESC';

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