TwistPHP Documentation

import

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

importImport an asset into 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
$mxdFilemixedn/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
$mxdFile 'foo-123';
$intGroupID 124;
$strTitle '';
$strDescription '';
$blActive true;

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