TwistPHP Documentation

storeObject

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

storeObjectStore and object/resource against an object key. An object key is a unique string that will enable you to retrieve the object later.

Parameters

Name Type Description
$strObjectKeystringn/a
$objResourceobjectn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strObjectKey 'foo';
$objResource = (object);

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