@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if ($showLabel) { |
104 | 104 | $text = $actions->getTitle(); |
105 | 105 | } |
106 | - $html = '<li><a class="icon ' . $actions->getIcon() . '"href="' . $actions->url() . '">' . $text . '</a></li>'; |
|
106 | + $html = '<li><a class="icon ' . $actions->getIcon() . '"href="' . $actions->url() . '">' . $text . '</a></li>'; |
|
107 | 107 | } elseif (is_array($actions)) { |
108 | 108 | if (isset($actions['items'])) { |
109 | 109 | $items = $actions['items']; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | $recordClassname = $this->getRecordClassName(); |
144 | 144 | |
145 | - $viewClassname = $recordClassname . 'TableView'; |
|
145 | + $viewClassname = $recordClassname . 'TableView'; |
|
146 | 146 | if (method_exists($Ui, $viewClassname)) { |
147 | 147 | $types['table'] = array( |
148 | 148 | 'classname' => $viewClassname, |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | ); |
152 | 152 | } |
153 | 153 | |
154 | - $viewClassname = $recordClassname . 'CardsView'; |
|
154 | + $viewClassname = $recordClassname . 'CardsView'; |
|
155 | 155 | if (method_exists($Ui, $viewClassname)) { |
156 | 156 | $types['cards'] = array( |
157 | 157 | 'classname' => $viewClassname, |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | ); |
161 | 161 | } |
162 | 162 | |
163 | - $viewClassname = $recordClassname . 'MapView'; |
|
163 | + $viewClassname = $recordClassname . 'MapView'; |
|
164 | 164 | if (method_exists($Ui, $viewClassname)) { |
165 | 165 | $types['map'] = array( |
166 | 166 | 'classname' => $viewClassname, |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | bab_Sort::asort($availableFields, 'description', bab_Sort::CASE_INSENSITIVE); |
257 | 257 | |
258 | 258 | foreach ($availableFields as $field) { |
259 | - $fieldName = $field['name']; |
|
259 | + $fieldName = $field['name']; |
|
260 | 260 | $fieldDescription = $field['description']; |
261 | 261 | |
262 | 262 | $used = isset($allViewFieldNames[$fieldName]); |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | $nbCol = 0; |
451 | 451 | foreach ($customSections as $customSection) { |
452 | 452 | |
453 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
453 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
454 | 454 | |
455 | 455 | // if ($currentColumn + $nbCol > 12) { |
456 | 456 | // $sectionsSection->addItem($row); |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | } |
508 | 508 | |
509 | 509 | $fieldItem = $W->FlowItems( |
510 | - $W->Label($fieldDescription)->setSizePolicy(Func_Icons::ICON_LEFT_16 . ' widget-80pc' ), |
|
510 | + $W->Label($fieldDescription)->setSizePolicy(Func_Icons::ICON_LEFT_16 . ' widget-80pc'), |
|
511 | 511 | $W->FlowItems( |
512 | 512 | $W->Hidden()->setName($customSection->id . '.' . $fieldId)->setValue($field['name']), |
513 | 513 | $W->Link('', $this->proxy()->editDisplayField($customSection->id, $field['name'])) |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | $W->Link('', $this->proxy()->removeDisplayField($customSection->id, $field['name'])) |
517 | 517 | ->addClass('icon', Func_Icons::ACTIONS_LIST_REMOVE) |
518 | 518 | ->setAjaxAction() |
519 | - )->setSizePolicy(Func_Icons::ICON_LEFT_16 . ' widget-20pc widget-align-right widget-actions' ) |
|
519 | + )->setSizePolicy(Func_Icons::ICON_LEFT_16 . ' widget-20pc widget-align-right widget-actions') |
|
520 | 520 | )->setSizePolicy('widget-list-element widget-actions-target'); |
521 | 521 | |
522 | 522 | $sectionBox->addItem($fieldItem); |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | } |
590 | 590 | |
591 | 591 | header('Content-type: application/json'); |
592 | - header('Content-Disposition: attachment; filename="' . $objectName . '.' . ($view === '' ? 'default' : $view) . '.json"'."\n"); |
|
592 | + header('Content-Disposition: attachment; filename="' . $objectName . '.' . ($view === '' ? 'default' : $view) . '.json"' . "\n"); |
|
593 | 593 | |
594 | 594 | $json = bab_json_encode($sectionsValues); |
595 | 595 | $json = bab_convertStringFromDatabase($json, bab_charset::UTF_8); |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | $recordSet = $this->getEditRecordSet(); |
834 | 834 | |
835 | 835 | $recordClassname = $this->getRecordClassName(); |
836 | - $editorClassname = $recordClassname . 'SectionEditor'; |
|
836 | + $editorClassname = $recordClassname . 'SectionEditor'; |
|
837 | 837 | /* @var $editor app_RecordEditor */ |
838 | 838 | $editor = $Ui->$editorClassname(); |
839 | 839 | if (!isset($itemId)) { |
@@ -914,16 +914,16 @@ discard block |
||
914 | 914 | |
915 | 915 | switch ($type) { |
916 | 916 | case 'cards': |
917 | - $tableviewClassname = $recordClassname . 'CardsView'; |
|
917 | + $tableviewClassname = $recordClassname . 'CardsView'; |
|
918 | 918 | break; |
919 | 919 | |
920 | 920 | case 'map': |
921 | - $tableviewClassname = $recordClassname . 'MapView'; |
|
921 | + $tableviewClassname = $recordClassname . 'MapView'; |
|
922 | 922 | break; |
923 | 923 | |
924 | 924 | case 'table': |
925 | 925 | default: |
926 | - $tableviewClassname = $recordClassname . 'TableView'; |
|
926 | + $tableviewClassname = $recordClassname . 'TableView'; |
|
927 | 927 | break; |
928 | 928 | } |
929 | 929 | |
@@ -989,7 +989,7 @@ discard block |
||
989 | 989 | $Ui = $App->Ui(); |
990 | 990 | |
991 | 991 | $recordClassname = $this->getRecordClassName(); |
992 | - $editorClassname = $recordClassname . 'Editor'; |
|
992 | + $editorClassname = $recordClassname . 'Editor'; |
|
993 | 993 | $editor = $Ui->$editorClassname(); |
994 | 994 | if (!isset($itemId)) { |
995 | 995 | $itemId = $this->getClass() . '_' . __FUNCTION__; |
@@ -1037,7 +1037,7 @@ discard block |
||
1037 | 1037 | $W->Link( |
1038 | 1038 | '', |
1039 | 1039 | $proxy->setFilteredViewType($tableView->getId(), $viewTypeId) |
1040 | - )->addClass('icon', $viewType['icon'] . ($filteredViewType=== $viewTypeId ? ' active' : '')) |
|
1040 | + )->addClass('icon', $viewType['icon'] . ($filteredViewType === $viewTypeId ? ' active' : '')) |
|
1041 | 1041 | // ->setSizePolicy('btn btn-xs btn-default ' . ($filteredViewType === $viewTypeId ? 'active' : '')) |
1042 | 1042 | ->setTitle($viewType['label']) |
1043 | 1043 | ->setAjaxAction() |
@@ -1307,7 +1307,7 @@ discard block |
||
1307 | 1307 | $Ui = $App->Ui(); |
1308 | 1308 | |
1309 | 1309 | $recordClassname = $this->getRecordClassName(); |
1310 | - $fullFrameClassname = $recordClassname . 'FullFrame'; |
|
1310 | + $fullFrameClassname = $recordClassname . 'FullFrame'; |
|
1311 | 1311 | $fullFrame = $Ui->$fullFrameClassname($record, $view); |
1312 | 1312 | |
1313 | 1313 |