TwistPHP Documentation

upload

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

uploadUpload an asset to the system (utilises 'add' to store the asset once uploaded), the asset type will be detected automatically. An asset group must be provided.

Parameters

Name Type Description
$strFileKeystringn/a
$intGroupIDintegern/a
[$strTitle = '']stringn/a
[$strDescription = '']stringn/a
[$blActive = true]booleann/a

Return Values

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

Example

<?php
//Set the variables for the example
$strFileKey 'foo';
$intGroupID 124;
$strTitle '';
$strDescription '';
$blActive true;

//Call the function upload with the example vars
Twist::Asset() -> upload($strFileKey$intGroupID$strTitle$strDescription$blActive);