@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | { |
| 176 | 176 | $App = $this->App(); |
| 177 | 177 | |
| 178 | - $customFieldSet= $App->CustomFieldSet(); |
|
| 178 | + $customFieldSet = $App->CustomFieldSet(); |
|
| 179 | 179 | $object = mb_substr(get_class($this), mb_strlen($App->classPrefix), -mb_strlen('Set')); |
| 180 | 180 | |
| 181 | 181 | $customFields = $customFieldSet->select($customFieldSet->object->is($object)); |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | throw new app_Exception('Trying to get the reference string of a record without an id.'); |
| 391 | 391 | } |
| 392 | 392 | $classname = $this->getClassName(); |
| 393 | - return $classname . ':' . $this->id; |
|
| 393 | + return $classname.':'.$this->id; |
|
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | |
@@ -650,13 +650,13 @@ discard block |
||
| 650 | 650 | */ |
| 651 | 651 | protected function importDate($name, $value) |
| 652 | 652 | { |
| 653 | - if (preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/',$value)) { |
|
| 653 | + if (preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $value)) { |
|
| 654 | 654 | return $this->importProperty($name, $value); |
| 655 | 655 | } |
| 656 | 656 | |
| 657 | 657 | // try in DD/MM/YYYY format |
| 658 | 658 | |
| 659 | - if (preg_match('/(?P<day>[0-9]+)\/(?P<month>[0-9]+)\/(?P<year>[0-9]{2,4})/',$value, $matches)) { |
|
| 659 | + if (preg_match('/(?P<day>[0-9]+)\/(?P<month>[0-9]+)\/(?P<year>[0-9]{2,4})/', $value, $matches)) { |
|
| 660 | 660 | |
| 661 | 661 | $value = sprintf('%04d-%02d-%02d', (int) $matches['year'], (int) $matches['month'], (int) $matches['day']); |
| 662 | 662 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | if (null === $url) { |
| 113 | 113 | $script = '<script type="text/javascript">'; |
| 114 | 114 | if (isset($message)) { |
| 115 | - $script .= 'alert("' . bab_toHtml($message, BAB_HTML_JS) . '");'; |
|
| 115 | + $script .= 'alert("'.bab_toHtml($message, BAB_HTML_JS).'");'; |
|
| 116 | 116 | } |
| 117 | 117 | $script .= 'history.back();'; |
| 118 | 118 | $script .= '</script>'; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $url = $url->url(); |
| 125 | 125 | } |
| 126 | 126 | if (!empty($babBody->msgerror)) { |
| 127 | - $url .= '&msgerror=' . urlencode($babBody->msgerror); |
|
| 127 | + $url .= '&msgerror='.urlencode($babBody->msgerror); |
|
| 128 | 128 | } |
| 129 | 129 | if (isset($message)) { |
| 130 | 130 | $lines = explode("\n", $message); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - header('Location: ' . $url); |
|
| 136 | + header('Location: '.$url); |
|
| 137 | 137 | die; |
| 138 | 138 | } |
| 139 | 139 | |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | function app_fileUploadError($error) |
| 167 | 167 | { |
| 168 | - switch($error) { |
|
| 168 | + switch ($error) { |
|
| 169 | 169 | case UPLOAD_ERR_OK: |
| 170 | 170 | return null; |
| 171 | 171 | |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | * @copyright Copyright (c) 2018 by CANTICO ({@link http://www.cantico.fr}) |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | -require_once dirname(__FILE__) . '/define.php'; |
|
| 25 | -require_once dirname(__FILE__) . '/functions.php'; |
|
| 24 | +require_once dirname(__FILE__).'/define.php'; |
|
| 25 | +require_once dirname(__FILE__).'/functions.php'; |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | |
@@ -55,14 +55,14 @@ discard block |
||
| 55 | 55 | $this->addonName = 'libapp'; |
| 56 | 56 | $this->addonPrefix = 'app'; |
| 57 | 57 | |
| 58 | - $this->classPrefix = $this->addonPrefix . '_'; |
|
| 59 | - $this->controllerTg = 'addon/' . $this->addonName . '/main'; |
|
| 58 | + $this->classPrefix = $this->addonPrefix.'_'; |
|
| 59 | + $this->controllerTg = 'addon/'.$this->addonName.'/main'; |
|
| 60 | 60 | |
| 61 | 61 | $addon = bab_getAddonInfosInstance($this->addonName); |
| 62 | 62 | $this->phpPath = $addon->getPhpPath(); |
| 63 | 63 | $this->recordSetPath = $this->phpPath; |
| 64 | 64 | $this->ctrlPath = $this->phpPath; |
| 65 | - $this->uiPath = $this->phpPath . 'ui/'; |
|
| 65 | + $this->uiPath = $this->phpPath.'ui/'; |
|
| 66 | 66 | |
| 67 | 67 | $babDB = bab_getDB(); |
| 68 | 68 | |
@@ -109,8 +109,8 @@ discard block |
||
| 109 | 109 | public function getRecordSetPathname($class) |
| 110 | 110 | { |
| 111 | 111 | // $App->MyRecordSet() -> myrecord.class.php |
| 112 | - $file = strtolower(substr($class, strlen($this->classPrefix), -3)) . '.class.php'; |
|
| 113 | - return $this->recordSetPath . $file; |
|
| 112 | + $file = strtolower(substr($class, strlen($this->classPrefix), -3)).'.class.php'; |
|
| 113 | + return $this->recordSetPath.$file; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
@@ -122,8 +122,8 @@ discard block |
||
| 122 | 122 | public function getRecordPathname($class) |
| 123 | 123 | { |
| 124 | 124 | // $App->MyRecord() -> myrecord.class.php |
| 125 | - $file = strtolower(substr($class, strlen($this->classPrefix))) . '.class.php'; |
|
| 126 | - return $this->recordSetPath . $file; |
|
| 125 | + $file = strtolower(substr($class, strlen($this->classPrefix))).'.class.php'; |
|
| 126 | + return $this->recordSetPath.$file; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | |
| 228 | 228 | if (substr($method, 0, 7) === 'include' && substr($method, -3) === 'Set') { |
| 229 | 229 | $incl = $method; |
| 230 | - $classNameMethod = substr($method, strlen('include')) . 'ClassName'; |
|
| 230 | + $classNameMethod = substr($method, strlen('include')).'ClassName'; |
|
| 231 | 231 | |
| 232 | 232 | |
| 233 | 233 | $classname = $this->$classNameMethod(); |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | // We need to revert to multilang fields before synchronizing. |
| 250 | 250 | $set->useLang(false); |
| 251 | 251 | } |
| 252 | - $sql .= $mysqlbackend->setToSql($set) . "\n"; |
|
| 252 | + $sql .= $mysqlbackend->setToSql($set)."\n"; |
|
| 253 | 253 | } |
| 254 | 254 | } |
| 255 | 255 | } |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | |
| 281 | 281 | if (substr($method, 0, strlen('include')) === 'include' && substr($method, -strlen('Set')) === 'Set') { |
| 282 | 282 | $incl = $method; |
| 283 | - $classNameMethod = substr($method, strlen('include')) . 'ClassName'; |
|
| 283 | + $classNameMethod = substr($method, strlen('include')).'ClassName'; |
|
| 284 | 284 | |
| 285 | 285 | $classname = $this->$classNameMethod(); |
| 286 | 286 | |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | |
| 295 | 295 | if (class_exists($classname) && method_exists($this, $call)) { |
| 296 | 296 | $set = $this->$call(); |
| 297 | - $sql .= $mysqlbackend->setToSql($set) . "\n"; |
|
| 297 | + $sql .= $mysqlbackend->setToSql($set)."\n"; |
|
| 298 | 298 | } |
| 299 | 299 | } |
| 300 | 300 | } |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | |
| 309 | 309 | public function includeBase() |
| 310 | 310 | { |
| 311 | - require_once APP_PHP_PATH . 'base.class.php'; |
|
| 311 | + require_once APP_PHP_PATH.'base.class.php'; |
|
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | /** |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | */ |
| 317 | 317 | public function includeRecordSet() |
| 318 | 318 | { |
| 319 | - require_once APP_SET_PATH . 'record.class.php'; |
|
| 319 | + require_once APP_SET_PATH.'record.class.php'; |
|
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | */ |
| 326 | 326 | public function includeTraceableRecordSet() |
| 327 | 327 | { |
| 328 | - require_once APP_SET_PATH . 'traceablerecord.class.php'; |
|
| 328 | + require_once APP_SET_PATH.'traceablerecord.class.php'; |
|
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | */ |
| 342 | 342 | public function includeLogSet() |
| 343 | 343 | { |
| 344 | - require_once APP_SET_PATH . 'log.class.php'; |
|
| 344 | + require_once APP_SET_PATH.'log.class.php'; |
|
| 345 | 345 | } |
| 346 | 346 | |
| 347 | 347 | /** |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | public function LogSetClassName() |
| 359 | 359 | { |
| 360 | - return $this->LogClassName() . 'Set'; |
|
| 360 | + return $this->LogClassName().'Set'; |
|
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | /** |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | */ |
| 380 | 380 | public function includeLinkSet() |
| 381 | 381 | { |
| 382 | - require_once APP_SET_PATH . 'link.class.php'; |
|
| 382 | + require_once APP_SET_PATH.'link.class.php'; |
|
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /** |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | */ |
| 396 | 396 | public function LinkSetClassName() |
| 397 | 397 | { |
| 398 | - return $this->LinkClassName() . 'Set'; |
|
| 398 | + return $this->LinkClassName().'Set'; |
|
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | /** |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | return null; |
| 430 | 430 | } |
| 431 | 431 | list($classname, $id) = $refParts; |
| 432 | - $classSet = $classname . 'Set'; |
|
| 432 | + $classSet = $classname.'Set'; |
|
| 433 | 433 | $set = $this->$classSet(); |
| 434 | 434 | if (isset($set)) { |
| 435 | 435 | return $set->get($id); |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | { |
| 449 | 449 | $fullClassName = get_class($record); |
| 450 | 450 | list(, $className) = explode('_', $fullClassName); |
| 451 | - return $className . ':' . $record->id; |
|
| 451 | + return $className.':'.$record->id; |
|
| 452 | 452 | } |
| 453 | 453 | |
| 454 | 454 | |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | */ |
| 476 | 476 | public function translate($str, $str_plurals = null, $number = null) |
| 477 | 477 | { |
| 478 | - require_once APP_PHP_PATH . 'functions.php'; |
|
| 478 | + require_once APP_PHP_PATH.'functions.php'; |
|
| 479 | 479 | $translation = $str; |
| 480 | 480 | if ($translate = bab_functionality::get('Translate/Gettext')) { |
| 481 | 481 | /* @var $translate Func_Translate_Gettext */ |
@@ -526,16 +526,16 @@ discard block |
||
| 526 | 526 | */ |
| 527 | 527 | public function mailTo($addr, $subject = null, $body = null) |
| 528 | 528 | { |
| 529 | - $mailTo = 'mailto:' . $addr; |
|
| 529 | + $mailTo = 'mailto:'.$addr; |
|
| 530 | 530 | $parameters = array(); |
| 531 | 531 | if (isset($subject)) { |
| 532 | - $parameters[] = 'subject=' . $subject; |
|
| 532 | + $parameters[] = 'subject='.$subject; |
|
| 533 | 533 | } |
| 534 | 534 | if (isset($body)) { |
| 535 | - $parameters[] = 'body=' . $body; |
|
| 535 | + $parameters[] = 'body='.$body; |
|
| 536 | 536 | } |
| 537 | 537 | if (!empty($parameters)) { |
| 538 | - $mailTo .= '?' . implode('&', $parameters); |
|
| 538 | + $mailTo .= '?'.implode('&', $parameters); |
|
| 539 | 539 | } |
| 540 | 540 | |
| 541 | 541 | return $mailTo; |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | } |
| 587 | 587 | |
| 588 | 588 | $number = number_format($number, $decimals, ',', ' '); |
| 589 | - return str_replace(' ', bab_nbsp(), $number . ' ' . $prefix . $unitSymbol); |
|
| 589 | + return str_replace(' ', bab_nbsp(), $number.' '.$prefix.$unitSymbol); |
|
| 590 | 590 | } |
| 591 | 591 | |
| 592 | 592 | |
@@ -606,7 +606,7 @@ discard block |
||
| 606 | 606 | } |
| 607 | 607 | |
| 608 | 608 | if (!isset($format)) { |
| 609 | - $format = bab_registry::get('/' . $this->addonName . '/numberFormat', $PhoneNumber->getDefaultFormat()); |
|
| 609 | + $format = bab_registry::get('/'.$this->addonName.'/numberFormat', $PhoneNumber->getDefaultFormat()); |
|
| 610 | 610 | } |
| 611 | 611 | $phoneNumberUtil = $PhoneNumber->PhoneNumberUtil(); |
| 612 | 612 | |
@@ -627,7 +627,7 @@ discard block |
||
| 627 | 627 | */ |
| 628 | 628 | public function includeController() |
| 629 | 629 | { |
| 630 | - require_once APP_PHP_PATH . '/controller.class.php'; |
|
| 630 | + require_once APP_PHP_PATH.'/controller.class.php'; |
|
| 631 | 631 | } |
| 632 | 632 | |
| 633 | 633 | |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | */ |
| 637 | 637 | public function includeRecordController() |
| 638 | 638 | { |
| 639 | - require_once APP_CTRL_PATH . '/record.ctrl.php'; |
|
| 639 | + require_once APP_CTRL_PATH.'/record.ctrl.php'; |
|
| 640 | 640 | } |
| 641 | 641 | |
| 642 | 642 | |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | */ |
| 677 | 677 | public function includeUi() |
| 678 | 678 | { |
| 679 | - require_once APP_UI_PATH . 'ui.class.php'; |
|
| 679 | + require_once APP_UI_PATH.'ui.class.php'; |
|
| 680 | 680 | } |
| 681 | 681 | |
| 682 | 682 | |
@@ -688,14 +688,14 @@ discard block |
||
| 688 | 688 | public function Ui() |
| 689 | 689 | { |
| 690 | 690 | $this->includeUi(); |
| 691 | - return bab_getInstance($this->classPrefix . 'Ui');//->setApp($this); |
|
| 691 | + return bab_getInstance($this->classPrefix.'Ui'); //->setApp($this); |
|
| 692 | 692 | } |
| 693 | 693 | |
| 694 | 694 | |
| 695 | 695 | |
| 696 | 696 | protected function includeAccess() |
| 697 | 697 | { |
| 698 | - require_once WORKSPACE_PHP_PATH . '/access.class.php'; |
|
| 698 | + require_once WORKSPACE_PHP_PATH.'/access.class.php'; |
|
| 699 | 699 | } |
| 700 | 700 | |
| 701 | 701 | |
@@ -727,29 +727,29 @@ discard block |
||
| 727 | 727 | |
| 728 | 728 | case substr($name, -strlen('SetClassName')) === 'SetClassName': |
| 729 | 729 | $setName = substr($name, 0, strlen($name) - strlen('ClassName')); |
| 730 | - return $this->classPrefix . $setName; |
|
| 730 | + return $this->classPrefix.$setName; |
|
| 731 | 731 | |
| 732 | 732 | case substr($name, -strlen('ClassName')) === 'ClassName': |
| 733 | 733 | $recordName = substr($name, 0, strlen($name) - strlen('ClassName')); |
| 734 | - return $this->classPrefix . $recordName; |
|
| 734 | + return $this->classPrefix.$recordName; |
|
| 735 | 735 | |
| 736 | 736 | case substr($name, 0, strlen('include')) === 'include' && substr($name, -strlen('Set')) === 'Set': |
| 737 | 737 | $fileNameBase = strtolower(substr(substr($name, 0, strlen($name) - strlen('Set')), strlen('include'))); |
| 738 | - require_once PHP_SET_PATH . $fileNameBase . '.class.php'; |
|
| 738 | + require_once PHP_SET_PATH.$fileNameBase.'.class.php'; |
|
| 739 | 739 | return; |
| 740 | 740 | |
| 741 | 741 | case substr($name, -strlen('Set')) === 'Set': |
| 742 | - $includeMethod = 'include' . $name; |
|
| 742 | + $includeMethod = 'include'.$name; |
|
| 743 | 743 | $this->$includeMethod(); |
| 744 | - $setClassNameMethod = $name . 'ClassName'; |
|
| 744 | + $setClassNameMethod = $name.'ClassName'; |
|
| 745 | 745 | $className = $this->$setClassNameMethod(); |
| 746 | 746 | $set = new $className($this); |
| 747 | 747 | return $set; |
| 748 | 748 | |
| 749 | 749 | //case method_exists($this, $name . 'Set'): |
| 750 | 750 | default: |
| 751 | - $setName = $name . 'Set'; |
|
| 752 | - $recordClassNameMethod = $name . 'ClassName'; |
|
| 751 | + $setName = $name.'Set'; |
|
| 752 | + $recordClassNameMethod = $name.'ClassName'; |
|
| 753 | 753 | $recordClassName = $this->$recordClassNameMethod(); |
| 754 | 754 | if (isset($arguments[0])) { |
| 755 | 755 | if ($arguments[0] instanceof $recordClassName) { |
@@ -318,9 +318,9 @@ discard block |
||
| 318 | 318 | if (is_array($parameters)) { |
| 319 | 319 | $params = array(); |
| 320 | 320 | foreach ($parameters as $key => $value) { |
| 321 | - $params[] = $key . '=' . $value; |
|
| 321 | + $params[] = $key.'='.$value; |
|
| 322 | 322 | } |
| 323 | - $rawField .= ':' . implode(';', $params); |
|
| 323 | + $rawField .= ':'.implode(';', $params); |
|
| 324 | 324 | } |
| 325 | 325 | array_push($rawFields, $rawField); |
| 326 | 326 | $this->fields = implode(',', $rawFields); |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | if (empty($rawField)) { |
| 340 | 340 | continue; |
| 341 | 341 | } |
| 342 | - list($fieldName, ) = explode(':', $rawField); |
|
| 342 | + list($fieldName,) = explode(':', $rawField); |
|
| 343 | 343 | |
| 344 | 344 | if ($removedFieldName == $fieldName) { |
| 345 | 345 | continue; |
@@ -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 |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | continue; |
| 681 | 681 | } |
| 682 | 682 | |
| 683 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 683 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 684 | 684 | |
| 685 | 685 | if ($currentColumn + $nbCol > 12) { |
| 686 | 686 | $this->addItem($row); |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | $parameters = $displayField['parameters']; |
| 709 | 709 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
| 710 | 710 | $label = isset($parameters['label']) && $parameters['label'] !== '__' ? $parameters['label'] : ''; |
| 711 | - $displayFieldMethod = '_' . $displayFieldName; |
|
| 711 | + $displayFieldMethod = '_'.$displayFieldName; |
|
| 712 | 712 | |
| 713 | 713 | if (method_exists($this, $displayFieldMethod)) { |
| 714 | 714 | $widget = $this->$displayFieldMethod($customSection); |
@@ -766,7 +766,7 @@ discard block |
||
| 766 | 766 | $parameters = $displayField['parameters']; |
| 767 | 767 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
| 768 | 768 | $label = isset($parameters['label']) && $parameters['label'] !== '__' ? $parameters['label'] : ''; |
| 769 | - $displayFieldMethod = '_' . $displayFieldName; |
|
| 769 | + $displayFieldMethod = '_'.$displayFieldName; |
|
| 770 | 770 | |
| 771 | 771 | if (method_exists($this, $displayFieldMethod)) { |
| 772 | 772 | $widget = $this->$displayFieldMethod($customSection); |
@@ -1036,7 +1036,7 @@ discard block |
||
| 1036 | 1036 | $row = $W->Items()->setSizePolicy('row'); |
| 1037 | 1037 | foreach ($customSections as $customSection) { |
| 1038 | 1038 | |
| 1039 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 1039 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 1040 | 1040 | |
| 1041 | 1041 | if ($currentColumn + $nbCol > 12) { |
| 1042 | 1042 | $this->addItem($row); |
@@ -1063,7 +1063,7 @@ discard block |
||
| 1063 | 1063 | $parameters = $displayField['parameters']; |
| 1064 | 1064 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
| 1065 | 1065 | $label = isset($parameters['label']) ? $parameters['label'] : ''; |
| 1066 | - $displayFieldMethod = '_' . $displayFieldName; |
|
| 1066 | + $displayFieldMethod = '_'.$displayFieldName; |
|
| 1067 | 1067 | |
| 1068 | 1068 | if (method_exists($this, $displayFieldMethod)) { |
| 1069 | 1069 | $value = $this->$displayFieldMethod($customSection); |
@@ -1154,7 +1154,7 @@ discard block |
||
| 1154 | 1154 | // we try to select one according to the classname prefix. |
| 1155 | 1155 | list($prefix) = explode('_', get_class($this)); |
| 1156 | 1156 | $functionalityName = ucwords($prefix); |
| 1157 | - $this->app = @bab_functionality::get('App/' . $functionalityName); |
|
| 1157 | + $this->app = @bab_functionality::get('App/'.$functionalityName); |
|
| 1158 | 1158 | if (!$this->app) { |
| 1159 | 1159 | $this->app = @bab_functionality::get('App'); |
| 1160 | 1160 | } |
@@ -1215,7 +1215,7 @@ discard block |
||
| 1215 | 1215 | $this->setCurrentPage(isset($filter['pageNumber']) ? $filter['pageNumber'] : $pageNumber); |
| 1216 | 1216 | |
| 1217 | 1217 | if (isset($name)) { |
| 1218 | - $this->sortParameterName = $name . '[filter][sort]'; |
|
| 1218 | + $this->sortParameterName = $name.'[filter][sort]'; |
|
| 1219 | 1219 | } else { |
| 1220 | 1220 | $this->sortParameterName = 'filter[sort]'; |
| 1221 | 1221 | } |
@@ -1366,11 +1366,11 @@ discard block |
||
| 1366 | 1366 | |
| 1367 | 1367 | foreach ($columns as $fieldName => $column) { |
| 1368 | 1368 | $field = $column->getField(); |
| 1369 | - if (! $column->isSearchable()) { |
|
| 1369 | + if (!$column->isSearchable()) { |
|
| 1370 | 1370 | continue; |
| 1371 | 1371 | } |
| 1372 | 1372 | |
| 1373 | - if (! ($field instanceof ORM_Field)) { |
|
| 1373 | + if (!($field instanceof ORM_Field)) { |
|
| 1374 | 1374 | $field = null; |
| 1375 | 1375 | } |
| 1376 | 1376 | |
@@ -1387,7 +1387,7 @@ discard block |
||
| 1387 | 1387 | |
| 1388 | 1388 | $formItem = $this->handleFilterLabel($label, $input); |
| 1389 | 1389 | $formItem->setSizePolicy('col-lg-2 col-md-3 col-sm-6 col-xs-12'); |
| 1390 | - $formItem->addClass('field_' . $fieldName); |
|
| 1390 | + $formItem->addClass('field_'.$fieldName); |
|
| 1391 | 1391 | |
| 1392 | 1392 | $mainSearch = (method_exists($column, 'isMainSearch') && $column->isMainSearch()); |
| 1393 | 1393 | |
@@ -1400,7 +1400,7 @@ discard block |
||
| 1400 | 1400 | } |
| 1401 | 1401 | |
| 1402 | 1402 | |
| 1403 | - if (! $this->submit) { |
|
| 1403 | + if (!$this->submit) { |
|
| 1404 | 1404 | $this->submit = $W->SubmitButton(); |
| 1405 | 1405 | $this->submit->setLabel(widget_translate('Filter')); |
| 1406 | 1406 | } |
@@ -1473,7 +1473,7 @@ discard block |
||
| 1473 | 1473 | // $this->setCurrentPage(isset($filter['pageNumber']) ? $filter['pageNumber'] : $pageNumber); |
| 1474 | 1474 | |
| 1475 | 1475 | if (isset($name)) { |
| 1476 | - $this->sortParameterName = $name . '[filter][sort]'; |
|
| 1476 | + $this->sortParameterName = $name.'[filter][sort]'; |
|
| 1477 | 1477 | } else { |
| 1478 | 1478 | $this->sortParameterName = 'filter[sort]'; |
| 1479 | 1479 | } |
@@ -1538,7 +1538,7 @@ discard block |
||
| 1538 | 1538 | |
| 1539 | 1539 | $tableview->setCurrentPage(isset($filterValues['pageNumber']) ? $filterValues['pageNumber'] : 0); |
| 1540 | 1540 | |
| 1541 | - $tableview->sortParameterName = $name . '[filter][sort]'; |
|
| 1541 | + $tableview->sortParameterName = $name.'[filter][sort]'; |
|
| 1542 | 1542 | |
| 1543 | 1543 | if (isset($filterValues['sort'])) { |
| 1544 | 1544 | $tableview->setSortField($filterValues['sort']); |
@@ -1837,7 +1837,7 @@ discard block |
||
| 1837 | 1837 | continue; |
| 1838 | 1838 | } |
| 1839 | 1839 | |
| 1840 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 1840 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 1841 | 1841 | |
| 1842 | 1842 | if ($currentColumn + $nbCol > 12) { |
| 1843 | 1843 | $this->addItem($row); |
@@ -1879,7 +1879,7 @@ discard block |
||
| 1879 | 1879 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
| 1880 | 1880 | $label = isset($parameters['label']) ? $parameters['label'] : null; |
| 1881 | 1881 | |
| 1882 | - $displayFieldMethod = '_' . $displayFieldName; |
|
| 1882 | + $displayFieldMethod = '_'.$displayFieldName; |
|
| 1883 | 1883 | if (method_exists($this, $displayFieldMethod)) { |
| 1884 | 1884 | $item = $this->$displayFieldMethod($customSection, $label); |
| 1885 | 1885 | } else { |
@@ -1908,7 +1908,7 @@ discard block |
||
| 1908 | 1908 | } |
| 1909 | 1909 | } |
| 1910 | 1910 | |
| 1911 | - if ($currentColumn + $nbCol> 0) { |
|
| 1911 | + if ($currentColumn + $nbCol > 0) { |
|
| 1912 | 1912 | $this->addItem($row); |
| 1913 | 1913 | } |
| 1914 | 1914 | } |
@@ -2022,7 +2022,7 @@ discard block |
||
| 2022 | 2022 | |
| 2023 | 2023 | $displayable = $field->output($value); |
| 2024 | 2024 | |
| 2025 | - switch(true) { |
|
| 2025 | + switch (true) { |
|
| 2026 | 2026 | case ($field instanceof ORM_TextField): |
| 2027 | 2027 | $displayable = $W->RichText($displayable)->setRenderingOptions(BAB_HTML_ALL ^ BAB_HTML_P); |
| 2028 | 2028 | break; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @copyright Copyright (c) 2006 by CANTICO ({@link http://www.cantico.fr}) |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | -require_once dirname(__FILE__) . '/controller.class.php'; |
|
| 24 | +require_once dirname(__FILE__).'/controller.class.php'; |
|
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | $App = $this->App(); |
| 54 | 54 | $recordClassname = $this->getRecordClassName(); |
| 55 | - $recordSetClassname = $recordClassname . 'Set'; |
|
| 55 | + $recordSetClassname = $recordClassname.'Set'; |
|
| 56 | 56 | |
| 57 | 57 | $recordSet = $App->$recordSetClassname(); |
| 58 | 58 | return $recordSet; |
@@ -104,9 +104,9 @@ discard block |
||
| 104 | 104 | if ($showLabel) { |
| 105 | 105 | $text = $actions->getTitle(); |
| 106 | 106 | } |
| 107 | - $html = '<li><a class="icon ' . $actions->getIcon() . '"href="' . $actions->url() . '">' . $text . '</a></li>'; |
|
| 107 | + $html = '<li><a class="icon '.$actions->getIcon().'"href="'.$actions->url().'">'.$text.'</a></li>'; |
|
| 108 | 108 | } elseif ($actions instanceof Widget_Link) { |
| 109 | - $html = '<li>' . $actions->display($canvas) . '</li>'; |
|
| 109 | + $html = '<li>'.$actions->display($canvas).'</li>'; |
|
| 110 | 110 | } elseif (is_array($actions)) { |
| 111 | 111 | if (isset($actions['items'])) { |
| 112 | 112 | $items = $actions['items']; |
@@ -119,10 +119,10 @@ discard block |
||
| 119 | 119 | if (isset($actions['icon'])) { |
| 120 | 120 | |
| 121 | 121 | $html = '<li class="dropdown">' |
| 122 | - . '<a href="#" class="' . $actions['icon'] . ' icon dropdown-toogle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">' |
|
| 122 | + . '<a href="#" class="'.$actions['icon'].' icon dropdown-toogle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">' |
|
| 123 | 123 | . ($actions['icon'] === 'actions-context-menu'/*Func_Icons::ACTIONS_CONTEXT_MENU*/ ? '' : '<span class="caret"></span>') |
| 124 | 124 | . '</a>' |
| 125 | - . '<ul class="dropdown-menu dropdown-menu-right ' . Func_Icons::ICON_LEFT_SYMBOLIC . '">' |
|
| 125 | + . '<ul class="dropdown-menu dropdown-menu-right '.Func_Icons::ICON_LEFT_SYMBOLIC.'">' |
|
| 126 | 126 | . $html |
| 127 | 127 | . '</ul>'; |
| 128 | 128 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | $recordClassname = $this->getRecordClassName(); |
| 147 | 147 | |
| 148 | - $viewClassname = $recordClassname . 'TableView'; |
|
| 148 | + $viewClassname = $recordClassname.'TableView'; |
|
| 149 | 149 | if (method_exists($Ui, $viewClassname)) { |
| 150 | 150 | $types['table'] = array( |
| 151 | 151 | 'classname' => $viewClassname, |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | ); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - $viewClassname = $recordClassname . 'CardsView'; |
|
| 157 | + $viewClassname = $recordClassname.'CardsView'; |
|
| 158 | 158 | if (method_exists($Ui, $viewClassname)) { |
| 159 | 159 | $types['cards'] = array( |
| 160 | 160 | 'classname' => $viewClassname, |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | ); |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | - $viewClassname = $recordClassname . 'MapView'; |
|
| 166 | + $viewClassname = $recordClassname.'MapView'; |
|
| 167 | 167 | if (method_exists($Ui, $viewClassname)) { |
| 168 | 168 | $types['map'] = array( |
| 169 | 169 | 'classname' => $viewClassname, |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | ); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - $viewClassname = $recordClassname . 'CalendarView'; |
|
| 175 | + $viewClassname = $recordClassname.'CalendarView'; |
|
| 176 | 176 | if (method_exists($Ui, $viewClassname)) { |
| 177 | 177 | $types['calendar'] = array( |
| 178 | 178 | 'classname' => $viewClassname, |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | foreach ($allViewSections as $viewSection) { |
| 245 | 245 | $fields = $viewSection->getFields(); |
| 246 | 246 | foreach ($fields as $field) { |
| 247 | - $allViewFieldNames[$field['fieldname']] = $viewSection->view . ',' . $viewSection->rank . ',' . $viewSection->id; |
|
| 247 | + $allViewFieldNames[$field['fieldname']] = $viewSection->view.','.$viewSection->rank.','.$viewSection->id; |
|
| 248 | 248 | } |
| 249 | 249 | } |
| 250 | 250 | |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | bab_Sort::asort($availableFields, 'description', bab_Sort::CASE_INSENSITIVE); |
| 269 | 269 | |
| 270 | 270 | foreach ($availableFields as $field) { |
| 271 | - $fieldName = $field['name']; |
|
| 271 | + $fieldName = $field['name']; |
|
| 272 | 272 | $fieldDescription = $field['description']; |
| 273 | 273 | |
| 274 | 274 | $used = isset($allViewFieldNames[$fieldName]); |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | $nbCol = 0; |
| 463 | 463 | foreach ($customSections as $customSection) { |
| 464 | 464 | |
| 465 | - list(, , $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 465 | + list(,, $nbCol) = explode('-', $customSection->sizePolicy); |
|
| 466 | 466 | |
| 467 | 467 | // if ($currentColumn + $nbCol > 12) { |
| 468 | 468 | // $sectionsSection->addItem($row); |
@@ -473,8 +473,8 @@ discard block |
||
| 473 | 473 | $currentColumn += $nbCol; |
| 474 | 474 | |
| 475 | 475 | $sectionSection = $W->Section( |
| 476 | - $customSection->name . ' (' . $customSection->rank . ')', |
|
| 477 | - $sectionBox = $W->VBoxItems($W->Hidden()->setName('#' . $customSection->id)) |
|
| 476 | + $customSection->name.' ('.$customSection->rank.')', |
|
| 477 | + $sectionBox = $W->VBoxItems($W->Hidden()->setName('#'.$customSection->id)) |
|
| 478 | 478 | // ->addClass('widget-dockable-content') |
| 479 | 479 | ); |
| 480 | 480 | $sectionSection->addClass('crm-custom-section'); |
@@ -519,16 +519,16 @@ discard block |
||
| 519 | 519 | } |
| 520 | 520 | |
| 521 | 521 | $fieldItem = $W->FlowItems( |
| 522 | - $W->Label($fieldDescription)->setSizePolicy(Func_Icons::ICON_LEFT_16 . ' widget-80pc' ), |
|
| 522 | + $W->Label($fieldDescription)->setSizePolicy(Func_Icons::ICON_LEFT_16.' widget-80pc'), |
|
| 523 | 523 | $W->FlowItems( |
| 524 | - $W->Hidden()->setName($customSection->id . '.' . $fieldId)->setValue($field['name']), |
|
| 524 | + $W->Hidden()->setName($customSection->id.'.'.$fieldId)->setValue($field['name']), |
|
| 525 | 525 | $W->Link('', $this->proxy()->editDisplayField($customSection->id, $field['name'])) |
| 526 | 526 | ->addClass('icon', Func_Icons::ACTIONS_DOCUMENT_EDIT) |
| 527 | 527 | ->setOpenMode(Widget_Link::OPEN_DIALOG), |
| 528 | 528 | $W->Link('', $this->proxy()->removeDisplayField($customSection->id, $field['name'])) |
| 529 | 529 | ->addClass('icon', Func_Icons::ACTIONS_LIST_REMOVE) |
| 530 | 530 | ->setAjaxAction() |
| 531 | - )->setSizePolicy(Func_Icons::ICON_LEFT_16 . ' widget-20pc widget-align-right widget-actions' ) |
|
| 531 | + )->setSizePolicy(Func_Icons::ICON_LEFT_16.' widget-20pc widget-align-right widget-actions') |
|
| 532 | 532 | )->setSizePolicy('widget-list-element widget-actions-target'); |
| 533 | 533 | |
| 534 | 534 | $sectionBox->addItem($fieldItem); |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | } |
| 602 | 602 | |
| 603 | 603 | header('Content-type: application/json'); |
| 604 | - header('Content-Disposition: attachment; filename="' . $objectName . '.' . ($view === '' ? 'default' : $view) . '.json"'."\n"); |
|
| 604 | + header('Content-Disposition: attachment; filename="'.$objectName.'.'.($view === '' ? 'default' : $view).'.json"'."\n"); |
|
| 605 | 605 | |
| 606 | 606 | $json = bab_json_encode($sectionsValues); |
| 607 | 607 | $json = bab_convertStringFromDatabase($json, bab_charset::UTF_8); |
@@ -845,11 +845,11 @@ discard block |
||
| 845 | 845 | $recordSet = $this->getEditRecordSet(); |
| 846 | 846 | |
| 847 | 847 | $recordClassname = $this->getRecordClassName(); |
| 848 | - $editorClassname = $recordClassname . 'SectionEditor'; |
|
| 848 | + $editorClassname = $recordClassname.'SectionEditor'; |
|
| 849 | 849 | /* @var $editor app_RecordEditor */ |
| 850 | 850 | $editor = $Ui->$editorClassname(); |
| 851 | 851 | if (!isset($itemId)) { |
| 852 | - $itemId = $this->getClass() . '.' . __FUNCTION__; |
|
| 852 | + $itemId = $this->getClass().'.'.__FUNCTION__; |
|
| 853 | 853 | } |
| 854 | 854 | $editor->setId($itemId); |
| 855 | 855 | $editor->setHiddenValue('tg', $App->controllerTg); |
@@ -892,7 +892,7 @@ discard block |
||
| 892 | 892 | public function getModelViewDefaultId($itemId = null) |
| 893 | 893 | { |
| 894 | 894 | if (!isset($itemId)) { |
| 895 | - $itemId = $this->getClass() . '.modelView'; |
|
| 895 | + $itemId = $this->getClass().'.modelView'; |
|
| 896 | 896 | } |
| 897 | 897 | |
| 898 | 898 | return $itemId; |
@@ -926,20 +926,20 @@ discard block |
||
| 926 | 926 | |
| 927 | 927 | switch ($type) { |
| 928 | 928 | case 'cards': |
| 929 | - $tableviewClassname = $recordClassname . 'CardsView'; |
|
| 929 | + $tableviewClassname = $recordClassname.'CardsView'; |
|
| 930 | 930 | break; |
| 931 | 931 | |
| 932 | 932 | case 'map': |
| 933 | - $tableviewClassname = $recordClassname . 'MapView'; |
|
| 933 | + $tableviewClassname = $recordClassname.'MapView'; |
|
| 934 | 934 | break; |
| 935 | 935 | |
| 936 | 936 | case 'calendar': |
| 937 | - $tableviewClassname = $recordClassname . 'CalendarView'; |
|
| 937 | + $tableviewClassname = $recordClassname.'CalendarView'; |
|
| 938 | 938 | break; |
| 939 | 939 | |
| 940 | 940 | case 'table': |
| 941 | 941 | default: |
| 942 | - $tableviewClassname = $recordClassname . 'TableView'; |
|
| 942 | + $tableviewClassname = $recordClassname.'TableView'; |
|
| 943 | 943 | break; |
| 944 | 944 | } |
| 945 | 945 | |
@@ -1005,10 +1005,10 @@ discard block |
||
| 1005 | 1005 | $Ui = $App->Ui(); |
| 1006 | 1006 | |
| 1007 | 1007 | $recordClassname = $this->getRecordClassName(); |
| 1008 | - $editorClassname = $recordClassname . 'Editor'; |
|
| 1008 | + $editorClassname = $recordClassname.'Editor'; |
|
| 1009 | 1009 | $editor = $Ui->$editorClassname(); |
| 1010 | 1010 | if (!isset($itemId)) { |
| 1011 | - $itemId = $this->getClass() . '_' . __FUNCTION__; |
|
| 1011 | + $itemId = $this->getClass().'_'.__FUNCTION__; |
|
| 1012 | 1012 | } |
| 1013 | 1013 | $editor->setId($itemId); |
| 1014 | 1014 | $editor->setHiddenValue('tg', $App->controllerTg); |
@@ -1053,7 +1053,7 @@ discard block |
||
| 1053 | 1053 | $W->Link( |
| 1054 | 1054 | '', |
| 1055 | 1055 | $proxy->setFilteredViewType($tableView->getId(), $viewTypeId) |
| 1056 | - )->addClass('icon', $viewType['icon'] . ($filteredViewType=== $viewTypeId ? ' active' : '')) |
|
| 1056 | + )->addClass('icon', $viewType['icon'].($filteredViewType === $viewTypeId ? ' active' : '')) |
|
| 1057 | 1057 | // ->setSizePolicy('btn btn-xs btn-default ' . ($filteredViewType === $viewTypeId ? 'active' : '')) |
| 1058 | 1058 | ->setTitle($viewType['label']) |
| 1059 | 1059 | ->setAjaxAction() |
@@ -1097,7 +1097,7 @@ discard block |
||
| 1097 | 1097 | |
| 1098 | 1098 | $filterVisibility = $this->getFilterVisibility($itemId); |
| 1099 | 1099 | $filterVisibility = !$filterVisibility; |
| 1100 | - $W->setUserConfiguration($itemId . '/filterVisibility', $filterVisibility); |
|
| 1100 | + $W->setUserConfiguration($itemId.'/filterVisibility', $filterVisibility); |
|
| 1101 | 1101 | |
| 1102 | 1102 | return true; |
| 1103 | 1103 | } |
@@ -1110,10 +1110,10 @@ discard block |
||
| 1110 | 1110 | protected function getFilterVisibility($itemId) |
| 1111 | 1111 | { |
| 1112 | 1112 | $W = bab_Widgets(); |
| 1113 | - $filterVisibility = $W->getUserConfiguration($itemId . '/filterVisibility'); |
|
| 1113 | + $filterVisibility = $W->getUserConfiguration($itemId.'/filterVisibility'); |
|
| 1114 | 1114 | if (!isset($filterVisibility)) { |
| 1115 | 1115 | $filterVisibility = false; |
| 1116 | - $W->setUserConfiguration($itemId . '/filterVisibility', $filterVisibility); |
|
| 1116 | + $W->setUserConfiguration($itemId.'/filterVisibility', $filterVisibility); |
|
| 1117 | 1117 | } |
| 1118 | 1118 | return $filterVisibility; |
| 1119 | 1119 | } |
@@ -1127,7 +1127,7 @@ discard block |
||
| 1127 | 1127 | protected function getFilteredViewType($itemId) |
| 1128 | 1128 | { |
| 1129 | 1129 | $W = bab_Widgets(); |
| 1130 | - $type = $W->getUserConfiguration($itemId . '/viewType'); |
|
| 1130 | + $type = $W->getUserConfiguration($itemId.'/viewType'); |
|
| 1131 | 1131 | if (!isset($type)) { |
| 1132 | 1132 | $type = 'table'; |
| 1133 | 1133 | } |
@@ -1143,7 +1143,7 @@ discard block |
||
| 1143 | 1143 | public function setFilteredViewType($itemId, $type = null) |
| 1144 | 1144 | { |
| 1145 | 1145 | $W = bab_Widgets(); |
| 1146 | - $W->setUserConfiguration($itemId . '/viewType', $type); |
|
| 1146 | + $W->setUserConfiguration($itemId.'/viewType', $type); |
|
| 1147 | 1147 | |
| 1148 | 1148 | return true; |
| 1149 | 1149 | } |
@@ -1288,14 +1288,14 @@ discard block |
||
| 1288 | 1288 | |
| 1289 | 1289 | switch ($format) { |
| 1290 | 1290 | case 'xlsx': |
| 1291 | - $tableview->downloadXlsx($filename . '.xlsx'); |
|
| 1291 | + $tableview->downloadXlsx($filename.'.xlsx'); |
|
| 1292 | 1292 | case 'xls': |
| 1293 | - $tableview->downloadExcel($filename . '.xls'); |
|
| 1293 | + $tableview->downloadExcel($filename.'.xls'); |
|
| 1294 | 1294 | case 'ssv': |
| 1295 | - $tableview->downloadCsv($filename . '.csv', ';', $inline, 'Windows-1252'); |
|
| 1295 | + $tableview->downloadCsv($filename.'.csv', ';', $inline, 'Windows-1252'); |
|
| 1296 | 1296 | case 'csv': |
| 1297 | 1297 | default: |
| 1298 | - $tableview->downloadCsv($filename . '.csv', ',', $inline, bab_charset::getIso()); |
|
| 1298 | + $tableview->downloadCsv($filename.'.csv', ',', $inline, bab_charset::getIso()); |
|
| 1299 | 1299 | } |
| 1300 | 1300 | } |
| 1301 | 1301 | |
@@ -1323,7 +1323,7 @@ discard block |
||
| 1323 | 1323 | $Ui = $App->Ui(); |
| 1324 | 1324 | |
| 1325 | 1325 | $recordClassname = $this->getRecordClassName(); |
| 1326 | - $fullFrameClassname = $recordClassname . 'FullFrame'; |
|
| 1326 | + $fullFrameClassname = $recordClassname.'FullFrame'; |
|
| 1327 | 1327 | $fullFrame = $Ui->$fullFrameClassname($record, $view); |
| 1328 | 1328 | |
| 1329 | 1329 | |
@@ -1486,7 +1486,7 @@ discard block |
||
| 1486 | 1486 | |
| 1487 | 1487 | $recordTitle = $record->getRecordTitle(); |
| 1488 | 1488 | |
| 1489 | - $message = sprintf($App->translate('%s has been deleted'), $App->translate($recordSet->getDescription()) . ' "' . $recordTitle . '"'); |
|
| 1489 | + $message = sprintf($App->translate('%s has been deleted'), $App->translate($recordSet->getDescription()).' "'.$recordTitle.'"'); |
|
| 1490 | 1490 | return $message; |
| 1491 | 1491 | } |
| 1492 | 1492 | |
@@ -1613,7 +1613,7 @@ discard block |
||
| 1613 | 1613 | $this->addMessage($deletedMessage); |
| 1614 | 1614 | } |
| 1615 | 1615 | |
| 1616 | - $this->addReloadSelector('.depends-' . strtolower($record->getClassName())); |
|
| 1616 | + $this->addReloadSelector('.depends-'.strtolower($record->getClassName())); |
|
| 1617 | 1617 | |
| 1618 | 1618 | return true; |
| 1619 | 1619 | } |
@@ -1644,7 +1644,7 @@ discard block |
||
| 1644 | 1644 | |
| 1645 | 1645 | $recordTitle = $record->getRecordTitle(); |
| 1646 | 1646 | |
| 1647 | - $subTitle = $App->translate($recordSet->getDescription()) . ' "' . $recordTitle . '"'; |
|
| 1647 | + $subTitle = $App->translate($recordSet->getDescription()).' "'.$recordTitle.'"'; |
|
| 1648 | 1648 | $form->addItem($W->Title($subTitle, 5)); |
| 1649 | 1649 | |
| 1650 | 1650 | $form->addItem($W->Title($App->translate('Confirm delete?'), 6)); |