summaryrefslogtreecommitdiff
path: root/framework/prado-cli.php
diff options
context:
space:
mode:
authorwei <>2007-02-19 02:23:19 +0000
committerwei <>2007-02-19 02:23:19 +0000
commit826a0ceb950872bb311addd24c1a8da76a1cccc6 (patch)
treeda833758be6a683a4cada41c417a522698705758 /framework/prado-cli.php
parentdb1a9b1af8aee6d5967e96d3f8928d1576c45daf (diff)
Add trace to active records and TDbCommand
Diffstat (limited to 'framework/prado-cli.php')
-rwxr-xr-xframework/prado-cli.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/framework/prado-cli.php b/framework/prado-cli.php
index 0cd33a74..5ccef4bc 100755
--- a/framework/prado-cli.php
+++ b/framework/prado-cli.php
@@ -631,6 +631,8 @@ class PradoCommandLineActiveRecordGen extends PradoCommandLineAction
if($this->_soap)
{
$prop .= <<<EOD
+
+
/**
* @var $type $name
* @soapproperty
@@ -657,6 +659,7 @@ class $class extends TActiveRecord
public static $table;
$props
+
public static function finder()
{
return self::getRecordFinder('$class');
@@ -685,15 +688,15 @@ if(class_exists('PHP_Shell_Commands', false))
public function generate($l)
{
- $args = explode(" ", trim($l));
- if(count($args) > 2)
+ $input = explode(" ", trim($l));
+ if(count($input) > 2)
{
$app_dir = '.';
if(Prado::getApplication()!==null)
$app_dir = dirname(Prado::getApplication()->getBasePath());
- $args = array($args[0],$args[1], $args[2],$app_dir);
- if(count($args)>3)
- $args = array($args[0],$args[1], $args[2],$app_dir,'soap');
+ $args = array($input[0],$input[1], $input[2],$app_dir);
+ if(count($input)>3)
+ $args = array($input[0],$input[1], $input[2],$app_dir,'soap');
$cmd = new PradoCommandLineActiveRecordGen;
$cmd->performAction($args);
}