File path: dist/twist/Core/Utilities/Asset.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
upload
— Upload 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.
Name | Description |
---|---|
$strFileKey | n/a |
$intGroupID | n/a |
[$strTitle = ''] | n/a |
[$strDescription = ''] | n/a |
[$blActive = true] | n/a |
void — No return information has been documented for this function.
<?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);