adding processes class into autoloading process
- setting as static function to g::streamFile(...)
This commit is contained in:
@@ -388,6 +388,8 @@ class Bootstrap
|
|||||||
self::registerClass("Xml_Node", PATH_GULLIVER . "class.xmlDocument.php");
|
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("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
|
//below this line, still not approved methods
|
||||||
@@ -1702,7 +1704,7 @@ class Bootstrap
|
|||||||
*
|
*
|
||||||
* @author Erik A.O. <erik@gmail.com, aortiz.erik@gmail.com>
|
* @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')) {
|
if (function_exists('json_decode')) {
|
||||||
return json_decode($Json);
|
return json_decode($Json);
|
||||||
|
|||||||
@@ -1068,7 +1068,7 @@ class G
|
|||||||
* @param string $downloadFileName
|
* @param string $downloadFileName
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function streamFile ($file, $download = false, $downloadFileName = '')
|
public static function streamFile ($file, $download = false, $downloadFileName = '')
|
||||||
{
|
{
|
||||||
require_once (PATH_THIRDPARTY . 'jsmin/jsmin.php');
|
require_once (PATH_THIRDPARTY . 'jsmin/jsmin.php');
|
||||||
$folderarray = explode( '/', $file );
|
$folderarray = explode( '/', $file );
|
||||||
|
|||||||
Reference in New Issue
Block a user