public static function SetData($src, $json = false) { if (!empty($src)) { if ($json) { $src = json_encode($src); } self::$_data = $src; } }