TwistPHP Documentation

Asset

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

Type: Utility

Asset — Asset management utility that allows the addition and grouping of assets. Assets can be images, videos, files, links and other data that can be uploaded to a website/service.

Example Usage

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

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

Method List

Method Access Returns
__constructconstructvoid
getpublicvoid
getAllpublicvoid
getByGrouppublicvoid
getByTypepublicvoid
expandprivatevoid
getSupportingContentpublicvoid
getDefaultSupportingContentpublicvoid
getTypepublicvoid
getTypeBySlugpublicvoid
getGrouppublicvoid
getGroupBySlugpublicvoid
getGroupspublicvoid
getGroupTreepublicvoid
addGrouppublicvoid
editGrouppublicvoid
addpublicvoid
uploadpublicvoid
importpublicvoid
editpublicvoid
activepublicvoid
deletepublicvoid
viewExtensionpublicvoid