Changes done for PhpDoc

This commit is contained in:
abraar
2011-01-28 14:16:58 +00:00
parent e21503b249
commit 22c8a3f4d3
6 changed files with 20 additions and 7 deletions

View File

@@ -1,7 +1,8 @@
<?php
/**
* cli.php
*
* @package workflow-engine-bin
*
* ProcessMaker Open Source Edition
* Copyright (C) 2011 Colosa Inc.
*
@@ -26,7 +27,7 @@
/* Windows supports both / and \ as path separators, so use the Unix separator
* for maximum compatibility.
*/
*/
define('PATH_SEP', '/');
define('PATH_HOME', WORKFLOW_PATH );

View File

@@ -1,4 +1,8 @@
<?php
/**
* cron.php
* @package workflow-engine-bin
*/
ini_set('display_errors', 1);
error_reporting(E_ALL);
ini_set('memory_limit', '300M'); // nore: this may need to be higher for many projects

View File

@@ -1,4 +1,8 @@
<?php
/**
* cron_single.php
* @package workflow-engine-bin
*/
ini_set('display_errors', 1);
error_reporting(E_ALL);
ini_set('memory_limit', '128M');

View File

@@ -23,11 +23,11 @@
*
* @author Alexandre Rosenfeld <alexandre@colosa.com>
* @package workflow-engine-bin-tasks
**/
*/
/* Get the size of the terminal (only works on Linux, on Windows it's always 80) */
preg_match_all("/rows.([0-9]+);.columns.([0-9]+);/", strtolower(exec('stty -a |grep columns')), $output);
if(sizeof($output) == 3) {
if(sizeof($output) == 3) {
define("COLUMNS", $output[2][0]);
} else {
define("COLUMNS", 80);

View File

@@ -23,7 +23,7 @@
*
* @author Alexandre Rosenfeld <alexandre@colosa.com>
* @package workflow-engine-bin-tasks
**/
*/
G::LoadClass("system");
G::LoadClass("wsTools");

View File

@@ -23,7 +23,7 @@
*
* @author Alexandre Rosenfeld <alexandre@colosa.com>
* @package workflow-engine-bin-tasks
**/
*/
CLI::taskName('info');
CLI::taskDescription(<<<EOT
@@ -145,6 +145,10 @@ EOT
CLI::taskArg('workspace-name', true, true);
CLI::taskRun(run_translation_upgrade);
/**
* Function run_info
* access public
*/
function run_info($args, $opts) {
$workspaces = get_workspaces_from_args($args, false);
workspaceTools::printSysInfo();
@@ -360,4 +364,4 @@ function run_workspace_restore($args, $opts) {
workspaceTools::restore($args[0], $args[1]);
}
?>
?>