| @@ 63-73 (lines=11) @@ | ||
| 60 | $module = $id_args[0]; |
|
| 61 | $id = $id_args[1]; |
|
| 62 | } |
|
| 63 | else if(count($id_args) == 3) |
|
| 64 | {
|
|
| 65 | $target = $id_args[0]; |
|
| 66 | $targetList = array('modules' => 1, 'addons' => 1, 'widgets' => 1);
|
|
| 67 | if(!isset($targetList[$target])) |
|
| 68 | {
|
|
| 69 | return; |
|
| 70 | } |
|
| 71 | $module = $id_args[1]; |
|
| 72 | $id = $id_args[2]; |
|
| 73 | } |
|
| 74 | ||
| 75 | // get column properties from the table |
|
| 76 | $table_file = sprintf('%s%s/%s/schemas/%s.xml', _XE_PATH_, 'modules', $module, $table_name);
|
|
| @@ 539-550 (lines=12) @@ | ||
| 536 | $module = $id_args[0]; |
|
| 537 | $id = $id_args[1]; |
|
| 538 | } |
|
| 539 | elseif(count($id_args) == 3) |
|
| 540 | { |
|
| 541 | $target = $id_args[0]; |
|
| 542 | $typeList = array('addons' => 1, 'widgets' => 1); |
|
| 543 | if(!isset($typeList[$target])) |
|
| 544 | { |
|
| 545 | $this->actDBClassFinish(); |
|
| 546 | return; |
|
| 547 | } |
|
| 548 | $module = $id_args[1]; |
|
| 549 | $id = $id_args[2]; |
|
| 550 | } |
|
| 551 | if(!$target || !$module || !$id) |
|
| 552 | { |
|
| 553 | $this->actDBClassFinish(); |
|