private function contentFromData($data, $format)
	{
		$type = gettype($data);
		if($type === 'string')
		{
			$content = $data;
		}
		else if($type === 'array')
		{
			switch ($format) 
			{
				case 'json':
				case 'jsonp':
					$content = json_encode($data);
					break;
				default:
					$content = serialize($data);
					break;
			}
			if($format === 'jsonp')
			{
				$customData = ('string' === gettype($this->customData)) ? $this->customData : 'data';
				if(!empty($_GET))
				{
					$getKeys = array_keys($_GET);
					$customData = $getKeys[0];
				}
				$customData = trim($customData);
				$content = $customData . '(' . $content . ');';
			}
		}
		else 
		{
			$content = serialize($data);
		}
		return $content;
	}