Add namespace Processmaker\Core

This commit is contained in:
Marco A. Nina Mena
2017-08-14 16:13:46 -04:00
parent 06641a39c2
commit ee5a124bba
87 changed files with 623 additions and 477 deletions

View File

@@ -26,6 +26,9 @@
*/
/* Get the size of the terminal (only works on Linux, on Windows it's always 80) */
use ProcessMaker\Core\System;
preg_match_all("/rows.([0-9]+);.columns.([0-9]+);/", strtolower(exec('stty -a |grep columns')), $output);
if(sizeof($output) == 3 && isset($output[2]) && isset($output[2][0])) {
define("COLUMNS", $output[2][0]);
@@ -47,7 +50,7 @@ function get_workspaces_from_args($args, $includeAll = true) {
$workspaces[] = new WorkspaceTools($arg);
}
if (empty($workspaces) && $includeAll) {
$workspaces = PmSystem::listWorkspaces();
$workspaces = System::listWorkspaces();
}
return $workspaces;
}