TwistPHP Documentation

Instance

File path: dist/twist/Classes/Instance.class.php
Namespace: Twist\Classes
Extends:

Type: Class

Instance — Instance handler to store and retrieve resources and objects from anywhere withing the framework. Handy for storing instances of models and other data to help minimize repetition of processing and loading data.

Example Usage

<?php
//Set the variables for the example
$strObjectKey 'foo';

//Call the function retrieveObject with the example vars
\Twist\Classes\Instance::retrieveObject($strObjectKey);

Method List

Method Access Returns
isObjectstaticvoid
storeObjectstaticvoid
retrieveObjectstaticvoid
removeObjectstaticvoid
listObjectsstaticvoid