@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | |
287 | 287 | // all widget have static id to not change id of others widgets in page |
288 | 288 | |
289 | - $infoMessages = $_SESSION['app_msginfo']; |
|
289 | + $infoMessages = $_SESSION['app_msginfo']; |
|
290 | 290 | foreach ($infoMessages as $infoLine) { |
291 | 291 | $this->App()->Controller()->addMessage($infoLine); |
292 | 292 | } |
@@ -304,6 +304,6 @@ discard block |
||
304 | 304 | * @see app.jquery.js#window.babAddonLibApp.numberFormat |
305 | 305 | */ |
306 | 306 | $this->setMetadata('numberFormatSeparator', mb_substr($str, 1, 1)); |
307 | - $this->setMetadata('numberFormatPrecision', mb_strlen($str) -2); |
|
307 | + $this->setMetadata('numberFormatPrecision', mb_strlen($str) - 2); |
|
308 | 308 | } |
309 | 309 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | return parent::delete($criteria); |
240 | 240 | } |
241 | 241 | |
242 | - require_once $GLOBALS['babInstallPath'] . '/utilit/dateTime.php'; |
|
242 | + require_once $GLOBALS['babInstallPath'].'/utilit/dateTime.php'; |
|
243 | 243 | $now = BAB_DateTime::now()->getIsoDateTime(); |
244 | 244 | |
245 | 245 | $records = $this->select($criteria); |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | return parent::save($record); |
275 | 275 | } |
276 | 276 | |
277 | - require_once $GLOBALS['babInstallPath'] . '/utilit/dateTime.php'; |
|
277 | + require_once $GLOBALS['babInstallPath'].'/utilit/dateTime.php'; |
|
278 | 278 | |
279 | 279 | $now = BAB_DateTime::now()->getIsoDateTime(); |
280 | 280 | |
@@ -304,11 +304,11 @@ discard block |
||
304 | 304 | */ |
305 | 305 | private function uuid() |
306 | 306 | { |
307 | - return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x', |
|
308 | - mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), |
|
309 | - mt_rand( 0, 0x0fff ) | 0x4000, |
|
310 | - mt_rand( 0, 0x3fff ) | 0x8000, |
|
311 | - mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) ); |
|
307 | + return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', |
|
308 | + mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff), |
|
309 | + mt_rand(0, 0x0fff) | 0x4000, |
|
310 | + mt_rand(0, 0x3fff) | 0x8000, |
|
311 | + mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)); |
|
312 | 312 | } |
313 | 313 | |
314 | 314 | /** |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | |
399 | 399 | $linkSet->hasOne('sourceId', get_class($this)); |
400 | 400 | |
401 | - $criteria = $linkSet->targetClass->is(get_class($target)) |
|
401 | + $criteria = $linkSet->targetClass->is(get_class($target)) |
|
402 | 402 | ->_AND_($linkSet->targetId->is($target->id)) |
403 | 403 | ->_AND_($linkSet->sourceClass->is($this->getRecordClassName())); |
404 | 404 | if (isset($linkType)) { |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | |
429 | 429 | $linkSet->hasOne('targetId', get_class($this)); |
430 | 430 | |
431 | - $criteria = $linkSet->sourceClass->is(get_class($source)) |
|
431 | + $criteria = $linkSet->sourceClass->is(get_class($source)) |
|
432 | 432 | ->_AND_($linkSet->sourceId->is($source->id)) |
433 | 433 | ->_AND_($linkSet->targetClass->is($this->getRecordClassName())); |
434 | 434 | if (isset($linkType)) { |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | $sourcesCriteria[] = $linkSet->sourceClass->is($sourceClass)->_AND_($linkSet->sourceId->in($sourceIds)); |
473 | 473 | } |
474 | 474 | |
475 | - $criteria = $linkSet->all( |
|
475 | + $criteria = $linkSet->all( |
|
476 | 476 | $linkSet->targetClass->is($this->getRecordClassName()), |
477 | 477 | $linkSet->any($sourcesCriteria) |
478 | 478 | ); |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | $targetsCriteria[] = $linkSet->targetClass->is($targetClass)->_AND_($linkSet->targetId->in($targetIds)); |
518 | 518 | } |
519 | 519 | |
520 | - $criteria = $linkSet->all( |
|
520 | + $criteria = $linkSet->all( |
|
521 | 521 | $linkSet->sourceClass->is($this->getRecordClassName()), |
522 | 522 | $linkSet->any($targetsCriteria) |
523 | 523 | ); |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | { |
576 | 576 | $linkSet = $this->App()->LinkSet(); |
577 | 577 | |
578 | - $criteria = $linkSet->sourceClass->is(get_class($source)) |
|
578 | + $criteria = $linkSet->sourceClass->is(get_class($source)) |
|
579 | 579 | ->_AND_($linkSet->sourceId->is($source->id)) |
580 | 580 | ->_AND_($linkSet->targetClass->is(get_class($this))) |
581 | 581 | ->_AND_($linkSet->targetId->is($this->id)); |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | { |
606 | 606 | $linkSet = $this->App()->LinkSet(); |
607 | 607 | |
608 | - $criteria = $linkSet->targetClass->is(get_class($target)) |
|
608 | + $criteria = $linkSet->targetClass->is(get_class($target)) |
|
609 | 609 | ->_AND_($linkSet->targetId->is($target->id)) |
610 | 610 | ->_AND_($linkSet->sourceClass->is(get_class($this))) |
611 | 611 | ->_AND_($linkSet->sourceId->is($this->id)); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @copyright Copyright (c) 2008 by CANTICO ({@link http://www.cantico.fr}) |
22 | 22 | */ |
23 | 23 | |
24 | -require_once APP_CTRL_PATH . '/record.ctrl.php'; |
|
24 | +require_once APP_CTRL_PATH.'/record.ctrl.php'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * This controller manages actions that can be performed on custom fields |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $W->Link( |
40 | 40 | $App->translate('Add a custom field'), |
41 | 41 | $this->proxy()->edit() |
42 | - )->addClass('icon', Func_Icons::ACTIONS_LIST_ADD) |
|
42 | + )->addClass('icon', Func_Icons::ACTIONS_LIST_ADD) |
|
43 | 43 | ->setOpenMode(Widget_Link::OPEN_DIALOG_AND_RELOAD) |
44 | 44 | ); |
45 | 45 |
@@ -21,15 +21,15 @@ |
||
21 | 21 | * @copyright Copyright (c) 2006 by CANTICO ({@link http://www.cantico.fr}) |
22 | 22 | */ |
23 | 23 | |
24 | -define('APP_PHP_PATH', dirname(__FILE__) . '/'); |
|
25 | -define('APP_SET_PATH', dirname(__FILE__) . '/'); |
|
26 | -define('APP_UI_PATH', dirname(__FILE__) . '/ui/'); |
|
27 | -define('APP_CTRL_PATH', dirname(__FILE__) . '/'); |
|
24 | +define('APP_PHP_PATH', dirname(__FILE__).'/'); |
|
25 | +define('APP_SET_PATH', dirname(__FILE__).'/'); |
|
26 | +define('APP_UI_PATH', dirname(__FILE__).'/ui/'); |
|
27 | +define('APP_CTRL_PATH', dirname(__FILE__).'/'); |
|
28 | 28 | |
29 | -require_once APP_PHP_PATH . 'base.class.php'; |
|
30 | -require_once APP_UI_PATH . 'base.ui.php'; |
|
29 | +require_once APP_PHP_PATH.'base.class.php'; |
|
30 | +require_once APP_UI_PATH.'base.ui.php'; |
|
31 | 31 | |
32 | -require_once $GLOBALS['babInstallPath'] . 'utilit/dateTime.php'; |
|
32 | +require_once $GLOBALS['babInstallPath'].'utilit/dateTime.php'; |
|
33 | 33 | |
34 | 34 | |
35 | 35 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | |
24 | 24 | |
25 | -require_once APP_CTRL_PATH . '/record.ctrl.php'; |
|
25 | +require_once APP_CTRL_PATH.'/record.ctrl.php'; |
|
26 | 26 | |
27 | 27 | |
28 | 28 | /** |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $box = $W->VBoxItems(); |
75 | 75 | |
76 | 76 | foreach ($availableFields as $field) { |
77 | - $fieldName = $field['name']; |
|
77 | + $fieldName = $field['name']; |
|
78 | 78 | $fieldDescription = $field['description']; |
79 | 79 | if (substr($fieldName, 0, 1) !== '_') { |
80 | 80 | $fieldDescription = $App->translate($fieldDescription); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | $recordSet = $this->getRecordSet(); |
281 | 281 | $record = $recordSet->request($id); |
282 | 282 | |
283 | - $object = $record->object . 'Set'; |
|
283 | + $object = $record->object.'Set'; |
|
284 | 284 | |
285 | 285 | $objectRecordSet = $App->$object(); |
286 | 286 | |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | $recordSet = $this->getRecordSet(); |
355 | 355 | $record = $recordSet->request($data['id']); |
356 | 356 | |
357 | - $object = $record->object . 'Set'; |
|
357 | + $object = $record->object.'Set'; |
|
358 | 358 | |
359 | 359 | $objectRecordSet = $App->$object(); |
360 | 360 |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function joinSource($sourceClass) |
76 | 76 | { |
77 | - if (get_class($this->sourceId) !== $sourceClass . 'Set') { |
|
78 | - $this->hasOne('sourceId', $sourceClass . 'Set'); |
|
77 | + if (get_class($this->sourceId) !== $sourceClass.'Set') { |
|
78 | + $this->hasOne('sourceId', $sourceClass.'Set'); |
|
79 | 79 | $this->join('sourceId'); |
80 | 80 | } |
81 | 81 | } |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function joinTarget($targetClass = null) |
88 | 88 | { |
89 | - if (get_class($this->targetId) !== $targetClass . 'Set') { |
|
90 | - $this->hasOne('targetId', $targetClass . 'Set'); |
|
89 | + if (get_class($this->targetId) !== $targetClass.'Set') { |
|
90 | + $this->hasOne('targetId', $targetClass.'Set'); |
|
91 | 91 | $this->join('targetId'); |
92 | 92 | } |
93 | 93 | } |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | } |
254 | 254 | |
255 | 255 | if ($deleteTarget) { |
256 | - foreach($set->select($criteria) as $link) { |
|
256 | + foreach ($set->select($criteria) as $link) { |
|
257 | 257 | |
258 | 258 | $className = $link->targetClass.'Set'; |
259 | 259 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | if (empty($description)) { |
48 | 48 | $description = $field->getName(); |
49 | 49 | } |
50 | - $fieldLabel = $W->Label($description . ':'); |
|
50 | + $fieldLabel = $W->Label($description.':'); |
|
51 | 51 | |
52 | 52 | if ($field instanceof ORM_DateField) { |
53 | 53 | $widget = $W->DatePicker(); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if (empty($description)) { |
104 | 104 | $description = $field->getName(); |
105 | 105 | } |
106 | - $fieldLabel = $W->Label($description . ':'); |
|
106 | + $fieldLabel = $W->Label($description.':'); |
|
107 | 107 | |
108 | 108 | if ($field instanceof ORM_DateField) { |
109 | 109 | $widget = $W->PeriodPicker(); |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $nbOptions = 0; |
207 | 207 | foreach ($iterator as $record) { |
208 | 208 | if (isset($record->code)) { |
209 | - $optionText = $record->code . ' - ' . $record->$fieldName; |
|
209 | + $optionText = $record->code.' - '.$record->$fieldName; |
|
210 | 210 | } else { |
211 | 211 | $optionText = $record->$fieldName; |
212 | 212 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | bab_Widgets()->includePhpClass('widget_InputWidget'); |
27 | 27 | bab_Widgets()->includePhpClass('widget_TableModelView'); |
28 | 28 | |
29 | -require_once dirname(__FILE__) . '/ui.helpers.php'; |
|
29 | +require_once dirname(__FILE__).'/ui.helpers.php'; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @return Widget_Form |
@@ -669,7 +669,7 @@ discard block |
||
669 | 669 | continue; |
670 | 670 | } |
671 | 671 | |
672 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
672 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
673 | 673 | |
674 | 674 | if ($currentColumn + $nbCol > 12) { |
675 | 675 | $this->addItem($row); |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | $parameters = $displayField['parameters']; |
698 | 698 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
699 | 699 | $label = isset($parameters['label']) && $parameters['label'] !== '__' ? $parameters['label'] : ''; |
700 | - $displayFieldMethod = '_' . $displayFieldName; |
|
700 | + $displayFieldMethod = '_'.$displayFieldName; |
|
701 | 701 | |
702 | 702 | if (method_exists($this, $displayFieldMethod)) { |
703 | 703 | $widget = $this->$displayFieldMethod($customSection); |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | } |
725 | 725 | } |
726 | 726 | |
727 | - if ($currentColumn + $nbCol> 0) { |
|
727 | + if ($currentColumn + $nbCol > 0) { |
|
728 | 728 | $this->addItem($row); |
729 | 729 | } |
730 | 730 | } |
@@ -757,7 +757,7 @@ discard block |
||
757 | 757 | $parameters = $displayField['parameters']; |
758 | 758 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
759 | 759 | $label = isset($parameters['label']) && $parameters['label'] !== '__' ? $parameters['label'] : ''; |
760 | - $displayFieldMethod = '_' . $displayFieldName; |
|
760 | + $displayFieldMethod = '_'.$displayFieldName; |
|
761 | 761 | |
762 | 762 | if (method_exists($this, $displayFieldMethod)) { |
763 | 763 | $widget = $this->$displayFieldMethod($customSection); |
@@ -996,7 +996,7 @@ discard block |
||
996 | 996 | $row = $W->Items()->setSizePolicy('row'); |
997 | 997 | foreach ($customSections as $customSection) { |
998 | 998 | |
999 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
999 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
1000 | 1000 | |
1001 | 1001 | if ($currentColumn + $nbCol > 12) { |
1002 | 1002 | $this->addItem($row); |
@@ -1023,7 +1023,7 @@ discard block |
||
1023 | 1023 | $parameters = $displayField['parameters']; |
1024 | 1024 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
1025 | 1025 | $label = isset($parameters['label']) ? $parameters['label'] : ''; |
1026 | - $displayFieldMethod = '_' . $displayFieldName; |
|
1026 | + $displayFieldMethod = '_'.$displayFieldName; |
|
1027 | 1027 | |
1028 | 1028 | if (method_exists($this, $displayFieldMethod)) { |
1029 | 1029 | $value = $this->$displayFieldMethod($customSection); |
@@ -1048,7 +1048,7 @@ discard block |
||
1048 | 1048 | } |
1049 | 1049 | } |
1050 | 1050 | |
1051 | - if ($currentColumn + $nbCol> 0) { |
|
1051 | + if ($currentColumn + $nbCol > 0) { |
|
1052 | 1052 | $this->addItem($row); |
1053 | 1053 | } |
1054 | 1054 | } |
@@ -1070,14 +1070,14 @@ discard block |
||
1070 | 1070 | |
1071 | 1071 | $fileSize = filesize($file->getFilePath()->tostring()); |
1072 | 1072 | if ($fileSize > 1024 * 1024) { |
1073 | - $fileSizeText = round($fileSize / (1024 * 1024), 1) . ' ' . $App->translate('MB'); |
|
1073 | + $fileSizeText = round($fileSize / (1024 * 1024), 1).' '.$App->translate('MB'); |
|
1074 | 1074 | } elseif ($fileSize > 1024) { |
1075 | - $fileSizeText = round($fileSize / 1024) . ' ' . $App->translate('KB'); |
|
1075 | + $fileSizeText = round($fileSize / 1024).' '.$App->translate('KB'); |
|
1076 | 1076 | } else { |
1077 | - $fileSizeText = $fileSize . ' ' . $App->translate('Bytes'); |
|
1077 | + $fileSizeText = $fileSize.' '.$App->translate('Bytes'); |
|
1078 | 1078 | } |
1079 | 1079 | |
1080 | - $fileIcon = $W->FileIcon($file->toString() . "\n" . $fileSizeText, $file->getFilePath()) |
|
1080 | + $fileIcon = $W->FileIcon($file->toString()."\n".$fileSizeText, $file->getFilePath()) |
|
1081 | 1081 | ->setThumbnailSize($width, $height); |
1082 | 1082 | |
1083 | 1083 | return $fileIcon; |
@@ -1140,7 +1140,7 @@ discard block |
||
1140 | 1140 | // we try to select one according to the classname prefix. |
1141 | 1141 | list($prefix) = explode('_', get_class($this)); |
1142 | 1142 | $functionalityName = ucwords($prefix); |
1143 | - $this->app = @bab_functionality::get('App/' . $functionalityName); |
|
1143 | + $this->app = @bab_functionality::get('App/'.$functionalityName); |
|
1144 | 1144 | if (!$this->app) { |
1145 | 1145 | $this->app = @bab_functionality::get('App'); |
1146 | 1146 | } |
@@ -1201,7 +1201,7 @@ discard block |
||
1201 | 1201 | $this->setCurrentPage(isset($filter['pageNumber']) ? $filter['pageNumber'] : $pageNumber); |
1202 | 1202 | |
1203 | 1203 | if (isset($name)) { |
1204 | - $this->sortParameterName = $name . '[filter][sort]'; |
|
1204 | + $this->sortParameterName = $name.'[filter][sort]'; |
|
1205 | 1205 | } else { |
1206 | 1206 | $this->sortParameterName = 'filter[sort]'; |
1207 | 1207 | } |
@@ -1353,11 +1353,11 @@ discard block |
||
1353 | 1353 | |
1354 | 1354 | foreach ($columns as $fieldName => $column) { |
1355 | 1355 | $field = $column->getField(); |
1356 | - if (! $column->isSearchable()) { |
|
1356 | + if (!$column->isSearchable()) { |
|
1357 | 1357 | continue; |
1358 | 1358 | } |
1359 | 1359 | |
1360 | - if (! ($field instanceof ORM_Field)) { |
|
1360 | + if (!($field instanceof ORM_Field)) { |
|
1361 | 1361 | $field = null; |
1362 | 1362 | } |
1363 | 1363 | |
@@ -1374,7 +1374,7 @@ discard block |
||
1374 | 1374 | |
1375 | 1375 | $formItem = $this->handleFilterLabel($label, $input); |
1376 | 1376 | $formItem->setSizePolicy('col-lg-2 col-md-3 col-sm-6 col-xs-12'); |
1377 | - $formItem->addClass('field_' . $fieldName); |
|
1377 | + $formItem->addClass('field_'.$fieldName); |
|
1378 | 1378 | |
1379 | 1379 | $mainSearch = (method_exists($column, 'isMainSearch') && $column->isMainSearch()); |
1380 | 1380 | |
@@ -1387,7 +1387,7 @@ discard block |
||
1387 | 1387 | } |
1388 | 1388 | |
1389 | 1389 | |
1390 | - if (! $this->submit) { |
|
1390 | + if (!$this->submit) { |
|
1391 | 1391 | $this->submit = $W->SubmitButton(); |
1392 | 1392 | $this->submit->setLabel(widget_translate('Filter')); |
1393 | 1393 | } |
@@ -1460,7 +1460,7 @@ discard block |
||
1460 | 1460 | // $this->setCurrentPage(isset($filter['pageNumber']) ? $filter['pageNumber'] : $pageNumber); |
1461 | 1461 | |
1462 | 1462 | if (isset($name)) { |
1463 | - $this->sortParameterName = $name . '[filter][sort]'; |
|
1463 | + $this->sortParameterName = $name.'[filter][sort]'; |
|
1464 | 1464 | } else { |
1465 | 1465 | $this->sortParameterName = 'filter[sort]'; |
1466 | 1466 | } |
@@ -1525,7 +1525,7 @@ discard block |
||
1525 | 1525 | |
1526 | 1526 | $tableview->setCurrentPage(isset($filterValues['pageNumber']) ? $filterValues['pageNumber'] : 0); |
1527 | 1527 | |
1528 | - $tableview->sortParameterName = $name . '[filter][sort]'; |
|
1528 | + $tableview->sortParameterName = $name.'[filter][sort]'; |
|
1529 | 1529 | |
1530 | 1530 | if (isset($filterValues['sort'])) { |
1531 | 1531 | $tableview->setSortField($filterValues['sort']); |
@@ -1811,7 +1811,7 @@ discard block |
||
1811 | 1811 | continue; |
1812 | 1812 | } |
1813 | 1813 | |
1814 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
1814 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
1815 | 1815 | |
1816 | 1816 | if ($currentColumn + $nbCol > 12) { |
1817 | 1817 | $this->addItem($row); |
@@ -1853,7 +1853,7 @@ discard block |
||
1853 | 1853 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
1854 | 1854 | $label = isset($parameters['label']) ? $parameters['label'] : null; |
1855 | 1855 | |
1856 | - $displayFieldMethod = '_' . $displayFieldName; |
|
1856 | + $displayFieldMethod = '_'.$displayFieldName; |
|
1857 | 1857 | if (method_exists($this, $displayFieldMethod)) { |
1858 | 1858 | $item = $this->$displayFieldMethod($customSection, $label); |
1859 | 1859 | } else { |
@@ -1882,7 +1882,7 @@ discard block |
||
1882 | 1882 | } |
1883 | 1883 | } |
1884 | 1884 | |
1885 | - if ($currentColumn + $nbCol> 0) { |
|
1885 | + if ($currentColumn + $nbCol > 0) { |
|
1886 | 1886 | $this->addItem($row); |
1887 | 1887 | } |
1888 | 1888 | } |
@@ -1996,7 +1996,7 @@ discard block |
||
1996 | 1996 | |
1997 | 1997 | $displayable = $field->output($value); |
1998 | 1998 | |
1999 | - switch(true) { |
|
1999 | + switch (true) { |
|
2000 | 2000 | case ($field instanceof ORM_TextField): |
2001 | 2001 | $displayable = $W->RichText($displayable)->setRenderingOptions(BAB_HTML_ALL ^ BAB_HTML_P); |
2002 | 2002 | break; |
@@ -34,13 +34,13 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function includeBase() |
36 | 36 | { |
37 | - require_once APP_UI_PATH . 'base.ui.php'; |
|
38 | - require_once APP_UI_PATH . 'ui.helpers.php'; |
|
37 | + require_once APP_UI_PATH.'base.ui.php'; |
|
38 | + require_once APP_UI_PATH.'ui.helpers.php'; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | public function includePage() |
42 | 42 | { |
43 | - require_once APP_UI_PATH . 'page.class.php'; |
|
43 | + require_once APP_UI_PATH.'page.class.php'; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function ExportSelectEditor($id, app_TableModelView $tableview, $filter = null) |
79 | 79 | { |
80 | - require_once dirname(__FILE__) . '/exportselect.ui.php'; |
|
80 | + require_once dirname(__FILE__).'/exportselect.ui.php'; |
|
81 | 81 | return new app_ExportSelectEditor($this->App(), $id, $tableview, $filter); |
82 | 82 | } |
83 | 83 | } |
84 | 84 | \ No newline at end of file |