Location: PHPKode > projects > Dresscode Framework > dresscode-master/applications/127.0.0.1/modules/Sessionstore/controller.php
<?php
namespace Dresscode\Controller;

\Dresscode\Module::requireController('Dataprovider');

class Sessionstore extends \Dresscode\Controller\Dataprovider
{
	/**
	 * @property
	 * @hideIfEmpty
	 * @var string
	 */
	protected $bin;

	public function setup()
	{
		if ($this->bin)
		{
			if (!isset($_SESSION[$this->bin]))
			{
				$_SESSION[$this->bin] = array();
			}
			$this->data = &$_SESSION[$this->bin];
		}
		else
		{
			$this->data = &$_SESSION;
		}
	}
}
Return current item: Dresscode Framework