TwistPHP Documentation

Asset

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

Type: Class

Asset — Asset management helper 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