File path: dist/twist/Classes/Instance.class.php
Namespace: Twist\Classes
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.
<?php
//Set the variables for the example
$strObjectKey = 'foo';
//Call the function retrieveObject with the example vars
\Twist\Classes\Instance::retrieveObject($strObjectKey);
Method | Access | Returns |
---|---|---|
isObject | static | void |
storeObject | static | void |
retrieveObject | static | void |
removeObject | static | void |
listObjects | static | void |