TwistPHP Documentation

data

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

dataSet and get the Twist session data
Passing only a key will return the data stored against that key, pass in a value as well will set and return the result

Parameters

Name Type Description
$strKeystringn/a
[$mxdValue = null]mixedn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strKey 'foo';
$mxdValue null;

//Call the function data with the example vars
Twist::Session() -> data($strKey$mxdValue);