TwistPHP Documentation

active

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

activeSet the status of an asset between active/inactive by passing a boolean of either true or false in the second parameter.

Parameters

Name Type Description
$intAssetIDintegern/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
$intAssetID 124;
$blActive true;

//Call the function active with the example vars
Twist::Asset() -> active($intAssetID$blActive);