TwistPHP Documentation

exists

File path: dist/twist/Core/Models/Package.model.php
Namespace: Twist\Core\Models
Extends:

existsCheck to see that a package is installed and usable, optional throw an exception of the package doesn't exist

Parameters

Name Type Description
$strPackageSlugstringn/a
[$blThrowException = false]booleann/a

Return Values

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

Example

<?php
//Set the variables for the example
$strPackageSlug 'foo';
$blThrowException false;

//Call the function exists with the example vars
$resPackage = new \Twist\Core\Models\Package();
$resPackage -> exists($strPackageSlug$blThrowException);