|
@@ -238,59 +238,59 @@ class GenerateTreeCommand extends Command
|
|
|
break;
|
|
|
|
|
|
case 16: // data for actions and subs
|
|
|
- if(strpos($line, "!inc:") === 0) { // !inc:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->setIncFields('include', explode(",", substr($line, 5)));
|
|
|
- }
|
|
|
+ if(strpos($line, "!inc:") === 0) { // !inc:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->setIncFields('include', explode(",", substr($line, 5)));
|
|
|
}
|
|
|
- else if(strpos($line, "!exc:") === 0) { // !exc:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->setIncFields('exclude', explode(",", substr($line, 5)));
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(strpos($line, "!exc:") === 0) { // !exc:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->setIncFields('exclude', explode(",", substr($line, 5)));
|
|
|
}
|
|
|
- else if(strpos($line, "!lnk:") === 0) { // !lnk:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->viewLinkField = substr($line, 5);
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(strpos($line, "!lnk:") === 0) { // !lnk:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->viewLinkField = substr($line, 5);
|
|
|
}
|
|
|
- else if(strpos($line, "!col:") === 0) { // !col:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->setColumnSpec(substr($line, 5), $exitURL,
|
|
|
- $currentMethod->dashboard ? 'record' : 'subRecord'
|
|
|
- );
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(strpos($line, "!col:") === 0) { // !col:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->setColumnSpec(substr($line, 5), $exitURL,
|
|
|
+ $currentMethod->dashboard ? 'record' : 'subRecord'
|
|
|
+ );
|
|
|
}
|
|
|
- else if(strpos($line, "!qry:") === 0) { // !qry:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->addQuery(substr($line, 5));
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(strpos($line, "!qry:") === 0) { // !qry:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->addQuery(substr($line, 5));
|
|
|
}
|
|
|
- else if(strpos($line, "!grp:") === 0) { // !grp:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->addGroup(substr($line, 5), $exitURL);
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(strpos($line, "!grp:") === 0) { // !grp:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->addGroup(substr($line, 5), $exitURL);
|
|
|
}
|
|
|
- else if(strpos($line, "!act:") === 0) { // !act:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->addAction(substr($line, 5), $exitURL);
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(strpos($line, "!act:") === 0) { // !act:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->addAction(substr($line, 5), $exitURL);
|
|
|
}
|
|
|
- else if(strpos($line, "!nal:") === 0) { // !nal:
|
|
|
- if (!empty($currentMethod)) {
|
|
|
- $currentMethod->noActionLinks = true;
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(strpos($line, "!nal:") === 0) { // !nal:
|
|
|
+ if (!empty($currentMethod)) {
|
|
|
+ $currentMethod->noActionLinks = true;
|
|
|
}
|
|
|
- else if(!empty($currentMethod)) {
|
|
|
- $currentMethod->data[] = $line;
|
|
|
- if($exitURL) {
|
|
|
- if(strpos("=", $line) !== FALSE) {
|
|
|
- $currentMethod->viewURL = $exitURL;
|
|
|
- }
|
|
|
- else {
|
|
|
- $currentMethod->exitURL = $exitURL;
|
|
|
- }
|
|
|
+ }
|
|
|
+ else if(!empty($currentMethod)) {
|
|
|
+ $currentMethod->data[] = $line;
|
|
|
+ if($exitURL) {
|
|
|
+ if(strpos("=", $line) !== FALSE) {
|
|
|
+ $currentMethod->viewURL = $exitURL;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $currentMethod->exitURL = $exitURL;
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
break;
|
|
|
|
|
|
case 20: // SUB add_new fields
|