TwistPHP Documentation

View

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

Type: Class

View — Bring HTML to life with conditional tags, allowing interaction with PHP without using PHP code. Include functionality of additional views in just a fue chars

Example Usage

<?php
//Set the variables for the example
$dirCustomViews null;

//Call the function setDirectory with the example vars
Twist::View() -> setDirectory($dirCustomViews);

Method List

Method Access Returns
__constructconstructvoid
killpublicvoid
setDirectorypublicvoid
getDirectorypublicvoid
getCacheKeyprotectedvoid
readCacheprotectedvoid
writeCacheprotectedvoid
removeCacheprotectedvoid
buildpublicvoid
replacepublicvoid
getDataprotectedvoid
getParametersprotectedvoid
processElementprotectedvoid
getTagspublicvoid
removeUnusedTagspublicvoid
parseViewPathprotectedvoid
getprotectedvoid
locateTagprotectedvoid
validDataTagsprotectedvoid
processTagprotectedvoid
detectTypeprotectedvoid
conditionprotectedvoid
extractParametersprotectedvoid
runTagspublicvoid
processArrayItemprotectedvoid
replaceTagprotectedvoid