adding processes class into autoloading process

- setting as static function to g::streamFile(...)
This commit is contained in:
Erik Amaru Ortiz
2014-03-05 20:05:33 -04:00
parent cb66859ce7
commit f18f96f6b4
2 changed files with 4 additions and 2 deletions

View File

@@ -388,6 +388,8 @@ class Bootstrap
self::registerClass("Xml_Node", PATH_GULLIVER . "class.xmlDocument.php");
self::registerClass("Tasks", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.tasks.php");
self::registerClass("Processes", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.processes.php");
}
//below this line, still not approved methods
@@ -1702,7 +1704,7 @@ class Bootstrap
*
* @author Erik A.O. <erik@gmail.com, aortiz.erik@gmail.com>
*/
public function json_decode($Json)
public static function json_decode($Json)
{
if (function_exists('json_decode')) {
return json_decode($Json);

View File

@@ -1068,7 +1068,7 @@ class G
* @param string $downloadFileName
* @return string
*/
public function streamFile ($file, $download = false, $downloadFileName = '')
public static function streamFile ($file, $download = false, $downloadFileName = '')
{
require_once (PATH_THIRDPARTY . 'jsmin/jsmin.php');
$folderarray = explode( '/', $file );