fuel/fuel/core/classes/cache/storage/file.php
protected function unprep_contents($payload)
	{
		$properties_end = strpos($payload, '{{/'.self::PROPS_TAG.'}}');
		if ($properties_end === false)
		{
			throw new \UnexpectedValueException('Cache has bad formatting');
		}

		$this->contents = substr($payload, $properties_end + strlen('{{/'.self::PROPS_TAG.'}}'));
		$props = substr(substr($payload, 0, $properties_end), strlen('{{'.self::PROPS_TAG.'}}'));
		$props = json_decode($props, true);
		if ($props === null)
		{
			throw new \UnexpectedValueException('Cache properties retrieval failed');
		}

		$this->created          = $props['created'];
		$this->expiration       = is_null($props['expiration']) ? null : (int) ($props['expiration'] - time());
		$this->dependencies     = $props['dependencies'];
		$this->content_handler  = $props['content_handler'];
	}
protected function unprep_contents($payload)
	{
		$properties_end = strpos($payload, '{{/'.self::PROPS_TAG.'}}');
		if ($properties_end === false)
		{
			throw new \UnexpectedValueException('Cache has bad formatting');
		}

		$this->contents = substr($payload, $properties_end + strlen('{{/'.self::PROPS_TAG.'}}'));
		$props = substr(substr($payload, 0, $properties_end), strlen('{{'.self::PROPS_TAG.'}}'));
		$props = json_decode($props, true);
		if ($props === null)
		{
			throw new \UnexpectedValueException('Cache properties retrieval failed');
		}

		$this->created          = $props['created'];
		$this->expiration       = is_null($props['expiration']) ? null : (int) ($props['expiration'] - time());
		$this->dependencies     = $props['dependencies'];
		$this->content_handler  = $props['content_handler'];
	}
protected function unprep_contents ( $ payload ) { $ properties_end = strpos ( $ payload , '{{/' . self :: PROPS_TAG . '}}' ) ; if ( $ properties_end === false ) { throw new \ UnexpectedValueException ( 'Cache has bad formatting' ) ; } $ this -> contents = substr ( $ payload , $ properties_end + strlen ( '{{/' . self :: PROPS_TAG . '}}' ) ) ; $ props = substr ( substr ( $ payload , 0 , $ properties_end ) , strlen ( '{{' . self :: PROPS_TAG . '}}' ) ) ; $ props = json_decode ( $ props , true ) ; if ( $ props === null ) { throw new \ UnexpectedValueException ( 'Cache properties retrieval failed' ) ; } $ this -> created = $ props [ 'created' ] ; $ this -> expiration = is_null ( $ props [ 'expiration' ] ) ? null : ( int ) ( $ props [ 'expiration' ] - time ( ) ) ; $ this -> dependencies = $ props [ 'dependencies' ] ; $ this -> content_handler = $ props [ 'content_handler' ] ; }
Remove the prepended cache properties and save them in class properties

@param   string
@throws  UnexpectedValueException
Remove the prepended cache properties and save them in class properties