* [misc,0.5h] add setSteps.
This commit is contained in:
@@ -21,4 +21,19 @@ class sqlBuilder extends wg
|
||||
$content = file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
|
||||
return $content;
|
||||
}
|
||||
|
||||
protected function setSteps()
|
||||
{
|
||||
global $lang;
|
||||
list($steps, $currStep) = $this->prop(array('steps', 'currStep'));
|
||||
|
||||
if(empty($steps))
|
||||
{
|
||||
$stepList = $lang->bi->builderStepList;
|
||||
if(empty($steps)) $this->setProp('steps', array_keys($stepList));
|
||||
}
|
||||
|
||||
list($steps, $currStep) = $this->prop(array('steps', 'currStep'));
|
||||
if(empty($currStep)) $this->setProp('currStep', reset($steps));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user