@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | $portlet_path = explode('_', get_class($this)); |
81 | 81 | |
82 | - return implode('/', $app_path) . '/' . $portlet_path[count($portlet_path) - 1]; |
|
82 | + return implode('/', $app_path).'/'.$portlet_path[count($portlet_path) - 1]; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $classname = get_class($this); |
91 | 91 | $suffix = mb_substr($classname, mb_strlen('App_PortletDefinition_')); |
92 | - $classname = 'App_PortletUi_' . $suffix; |
|
92 | + $classname = 'App_PortletUi_'.$suffix; |
|
93 | 93 | |
94 | 94 | return new $classname($this->App()); |
95 | 95 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | { |
160 | 160 | if(isset($this->components[$componentName])){ |
161 | 161 | return $this->components[$componentName]; |
162 | - }else{ |
|
162 | + } else{ |
|
163 | 163 | return null; |
164 | 164 | } |
165 | 165 | } |
@@ -427,8 +427,7 @@ discard block |
||
427 | 427 | if(empty($component->getPackageName())){ |
428 | 428 | $noPackageNames[] = $component->getName(); |
429 | 429 | } |
430 | - } |
|
431 | - catch (\Exception $e){ |
|
430 | + } catch (\Exception $e){ |
|
432 | 431 | |
433 | 432 | } |
434 | 433 | } |
@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | use Capwelton\LibOrm\ORMRecordSet; |
39 | 39 | use Capwelton\LibOrm\MySql\ORMMySqlBackend; |
40 | 40 | bab_Widgets(); |
41 | -require_once dirname(__FILE__) . '/define.php'; |
|
42 | -require_once dirname(__FILE__) . '/functions.php'; |
|
41 | +require_once dirname(__FILE__).'/define.php'; |
|
42 | +require_once dirname(__FILE__).'/functions.php'; |
|
43 | 43 | |
44 | 44 | $libappAddon = bab_getAddonInfosInstance('libapp'); |
45 | 45 | $libappPhpPath = $libappAddon->getPhpPath(); |
46 | 46 | |
47 | -require_once $libappPhpPath . '../vendor/autoload.php'; |
|
47 | +require_once $libappPhpPath.'../vendor/autoload.php'; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Provides extensible functionalities to manage an application. |
@@ -80,13 +80,13 @@ discard block |
||
80 | 80 | $this->addonPrefix = 'app'; |
81 | 81 | |
82 | 82 | $this->classPrefix = 'App'; |
83 | - $this->controllerTg = 'addon/' . $this->addonName . '/main'; |
|
83 | + $this->controllerTg = 'addon/'.$this->addonName.'/main'; |
|
84 | 84 | |
85 | 85 | $addon = bab_getAddonInfosInstance($this->addonName); |
86 | 86 | $this->phpPath = $addon->getPhpPath(); |
87 | 87 | $this->recordSetPath = $this->phpPath; |
88 | 88 | $this->ctrlPath = $this->phpPath; |
89 | - $this->uiPath = $this->phpPath . 'ui/'; |
|
89 | + $this->uiPath = $this->phpPath.'ui/'; |
|
90 | 90 | |
91 | 91 | $babDB = bab_getDB(); |
92 | 92 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if (class_exists($componentDefinitionObjectName)) { |
104 | 104 | $componentDefinition = new $componentDefinitionObjectName; |
105 | 105 | $components = $componentDefinition->getComponents($this); |
106 | - foreach ($components as $singleName => $singleComponent){ |
|
106 | + foreach ($components as $singleName => $singleComponent) { |
|
107 | 107 | $this->addComponent($singleName, $singleComponent); |
108 | 108 | } |
109 | 109 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $nbElem = count($componentName); |
133 | 133 | $componentName = $componentName[$nbElem - 1]; |
134 | 134 | $componentName = strtoupper($componentName); |
135 | - if(isset($this->components[$componentName])){ |
|
135 | + if (isset($this->components[$componentName])) { |
|
136 | 136 | return $this->components[$componentName]; |
137 | 137 | } |
138 | 138 | return null; |
@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | |
162 | 162 | public function __get($componentName) |
163 | 163 | { |
164 | - if(isset($this->components[$componentName])){ |
|
164 | + if (isset($this->components[$componentName])) { |
|
165 | 165 | return $this->components[$componentName]; |
166 | - }else{ |
|
166 | + } else { |
|
167 | 167 | return null; |
168 | 168 | } |
169 | 169 | } |
@@ -182,12 +182,12 @@ discard block |
||
182 | 182 | |
183 | 183 | $messages = array(); |
184 | 184 | |
185 | - foreach ($components as $componentName => $component){ |
|
185 | + foreach ($components as $componentName => $component) { |
|
186 | 186 | $dependencies = $component->checkDependencies(); |
187 | - foreach($dependencies['requiredComponents'] as $requiredComponent){ |
|
187 | + foreach ($dependencies['requiredComponents'] as $requiredComponent) { |
|
188 | 188 | $messages['requiredComponents'][$componentName][] = $requiredComponent; |
189 | 189 | } |
190 | - foreach($dependencies['optionalComponents'] as $optionalComponent){ |
|
190 | + foreach ($dependencies['optionalComponents'] as $optionalComponent) { |
|
191 | 191 | $messages['optionalComponents'][$componentName][] = $optionalComponent; |
192 | 192 | } |
193 | 193 | } |
@@ -199,9 +199,9 @@ discard block |
||
199 | 199 | { |
200 | 200 | $components = $this->getComponents(); |
201 | 201 | $componentDefinitions = array(); |
202 | - foreach ($components as $component){ |
|
202 | + foreach ($components as $component) { |
|
203 | 203 | $packageName = $component->getPackageName(); |
204 | - if(isset($componentDefinitions[$packageName]) && !empty($componentDefinitions[$packageName])){ |
|
204 | + if (isset($componentDefinitions[$packageName]) && !empty($componentDefinitions[$packageName])) { |
|
205 | 205 | continue; |
206 | 206 | } |
207 | 207 | $componentDefinitions[$packageName] = $component->getDefinition(); |
@@ -244,8 +244,8 @@ discard block |
||
244 | 244 | public function getRecordSetPathname($class) |
245 | 245 | { |
246 | 246 | // $App->MyRecordSet() -> myrecord.class.php |
247 | - $file = strtolower(substr($class, strlen($this->classPrefix), -3)) . '.class.php'; |
|
248 | - return $this->recordSetPath . $file; |
|
247 | + $file = strtolower(substr($class, strlen($this->classPrefix), -3)).'.class.php'; |
|
248 | + return $this->recordSetPath.$file; |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | /** |
@@ -257,8 +257,8 @@ discard block |
||
257 | 257 | public function getRecordPathname($class) |
258 | 258 | { |
259 | 259 | // $App->MyRecord() -> myrecord.class.php |
260 | - $file = strtolower(substr($class, strlen($this->classPrefix))) . '.class.php'; |
|
261 | - return $this->recordSetPath . $file; |
|
260 | + $file = strtolower(substr($class, strlen($this->classPrefix))).'.class.php'; |
|
261 | + return $this->recordSetPath.$file; |
|
262 | 262 | } |
263 | 263 | |
264 | 264 | /** |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | if (substr($method, 0, 7) === 'include' && substr($method, -3) === 'Set') { |
361 | 361 | $incl = $method; |
362 | - $classNameMethod = substr($method, strlen('include')) . 'ClassName'; |
|
362 | + $classNameMethod = substr($method, strlen('include')).'ClassName'; |
|
363 | 363 | |
364 | 364 | |
365 | 365 | $classname = $this->$classNameMethod(); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | // We need to revert to multilang fields before synchronizing. |
382 | 382 | $set->useLang(false); |
383 | 383 | } |
384 | - $sql .= $mysqlbackend->setToSql($set) . "\n"; |
|
384 | + $sql .= $mysqlbackend->setToSql($set)."\n"; |
|
385 | 385 | } |
386 | 386 | } |
387 | 387 | } |
@@ -408,9 +408,9 @@ discard block |
||
408 | 408 | '; |
409 | 409 | |
410 | 410 | $noPackageNames = array(); |
411 | - foreach ($this->components as $component){ |
|
411 | + foreach ($this->components as $component) { |
|
412 | 412 | /* @var $component AppComponent */ |
413 | - try{ |
|
413 | + try { |
|
414 | 414 | /* @var $set ORMRecordSet */ |
415 | 415 | $set = $component->recordSet(); |
416 | 416 | //Check if the component is not overriden by the addon |
@@ -418,26 +418,26 @@ discard block |
||
418 | 418 | //In case the set has been overriden, we simply do nothing here, as it will be instanciated by the synchronizeSql method |
419 | 419 | $cmprc = new \ReflectionClass($set); |
420 | 420 | $componentSetClass = $cmprc->getShortName(); |
421 | - if(method_exists($this, $componentSetClass)){ |
|
421 | + if (method_exists($this, $componentSetClass)) { |
|
422 | 422 | continue; |
423 | 423 | } |
424 | - if(method_exists($set, 'useLang')){ |
|
424 | + if (method_exists($set, 'useLang')) { |
|
425 | 425 | // This is necessary if the recordSet constructor uses a setLang(). |
426 | 426 | // We need to revert to multilang fields before synchronizing. |
427 | 427 | $set->useLang(false); |
428 | 428 | } |
429 | - $sql .= $mysqlbackend->setToSql($set) . "\n"; |
|
429 | + $sql .= $mysqlbackend->setToSql($set)."\n"; |
|
430 | 430 | |
431 | - if(empty($component->getPackageName())){ |
|
431 | + if (empty($component->getPackageName())) { |
|
432 | 432 | $noPackageNames[] = $component->getName(); |
433 | 433 | } |
434 | 434 | } |
435 | - catch (\Exception $e){ |
|
435 | + catch (\Exception $e) { |
|
436 | 436 | |
437 | 437 | } |
438 | 438 | } |
439 | 439 | |
440 | - if(!empty($noPackageNames)){ |
|
440 | + if (!empty($noPackageNames)) { |
|
441 | 441 | $errorMessage = implode(', ', $noPackageNames); |
442 | 442 | \bab_installWindow::message( |
443 | 443 | sprintf( |
@@ -461,18 +461,18 @@ discard block |
||
461 | 461 | $synchronize->fromSqlString($sql); |
462 | 462 | |
463 | 463 | $dependencies = $this->checkComponentsDependencies(); |
464 | - foreach ($dependencies['requiredComponents'] as $componentName => $requiredComponents){ |
|
465 | - foreach ($requiredComponents as $requiredComponent){ |
|
464 | + foreach ($dependencies['requiredComponents'] as $componentName => $requiredComponents) { |
|
465 | + foreach ($requiredComponents as $requiredComponent) { |
|
466 | 466 | $hasComponent = $this->getComponentByName($requiredComponent); |
467 | - if(!$hasComponent){ |
|
467 | + if (!$hasComponent) { |
|
468 | 468 | \bab_installWindow::message(sprintf($this->translate('The component %s is required for the component %s to work. You will encounter fatal errors'), $requiredComponent, $componentName)); |
469 | 469 | } |
470 | 470 | } |
471 | 471 | } |
472 | - foreach ($dependencies['optionalComponents'] as $componentName => $optionalComponents){ |
|
473 | - foreach ($optionalComponents as $optionalComponent){ |
|
472 | + foreach ($dependencies['optionalComponents'] as $componentName => $optionalComponents) { |
|
473 | + foreach ($optionalComponents as $optionalComponent) { |
|
474 | 474 | $hasComponent = $this->getComponentByName($optionalComponent); |
475 | - if(!$hasComponent){ |
|
475 | + if (!$hasComponent) { |
|
476 | 476 | \bab_installWindow::message(sprintf($this->translate('The optional component %s has not been added. The component %s may have reduced functionalities'), $optionalComponent, $componentName)); |
477 | 477 | } |
478 | 478 | } |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | { |
486 | 486 | $components = $this->getComponents(); |
487 | 487 | |
488 | - foreach ($components as $component){ |
|
488 | + foreach ($components as $component) { |
|
489 | 489 | $component->onUpdate(); |
490 | 490 | } |
491 | 491 | |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | |
507 | 507 | if (substr($method, 0, strlen('include')) === 'include' && substr($method, -strlen('Set')) === 'Set') { |
508 | 508 | $incl = $method; |
509 | - $classNameMethod = substr($method, strlen('include')) . 'ClassName'; |
|
509 | + $classNameMethod = substr($method, strlen('include')).'ClassName'; |
|
510 | 510 | |
511 | 511 | $classname = $this->$classNameMethod(); |
512 | 512 | |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | |
521 | 521 | if (class_exists($classname) && method_exists($this, $call)) { |
522 | 522 | $set = $this->$call(); |
523 | - $sql .= $mysqlbackend->setToSql($set) . "\n"; |
|
523 | + $sql .= $mysqlbackend->setToSql($set)."\n"; |
|
524 | 524 | } |
525 | 525 | } |
526 | 526 | } |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | |
535 | 535 | public function includeBase() |
536 | 536 | { |
537 | - require_once APP_PHP_PATH . 'base.class.php'; |
|
537 | + require_once APP_PHP_PATH.'base.class.php'; |
|
538 | 538 | } |
539 | 539 | |
540 | 540 | /** |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | public function getRecordSetByRef($recordClassname) |
581 | 581 | { |
582 | 582 | $recordClassname = str_replace($this->classPrefix, '', $recordClassname); |
583 | - $classSet = $recordClassname . 'Set'; |
|
583 | + $classSet = $recordClassname.'Set'; |
|
584 | 584 | $set = $this->$classSet(); |
585 | 585 | return $set; |
586 | 586 | } |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | list($recordClassname, $id) = $refParts; |
602 | 602 | $set = $this->getRecordSetByRef($recordClassname); |
603 | 603 | if (isset($set)) { |
604 | - if($noDefaultCriteria){ |
|
604 | + if ($noDefaultCriteria) { |
|
605 | 605 | $set->setDefaultCriteria(null); |
606 | 606 | } |
607 | 607 | return $set->get($id); |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | { |
621 | 621 | $fullClassName = get_class($record); |
622 | 622 | list(, $className) = explode('_', $fullClassName); |
623 | - return $className . ':' . $record->id; |
|
623 | + return $className.':'.$record->id; |
|
624 | 624 | } |
625 | 625 | |
626 | 626 | |
@@ -675,7 +675,7 @@ discard block |
||
675 | 675 | |
676 | 676 | //Then, check if current component has a translation |
677 | 677 | if ($translation === $str) { |
678 | - if($currentComponent = $this->getCurrentComponent()){ |
|
678 | + if ($currentComponent = $this->getCurrentComponent()) { |
|
679 | 679 | $translator->setAddonName($currentComponent->getPackageName()); |
680 | 680 | $translator->setLangPath($currentComponent->getLangPath()); |
681 | 681 | $translation = $translator->translate($str, $str_plurals, $number); |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | } |
685 | 685 | //Then, check if libapp has a translation |
686 | 686 | if ($translation === $str) { |
687 | - $translator->setLangPath(null);//Reset lang path |
|
687 | + $translator->setLangPath(null); //Reset lang path |
|
688 | 688 | $translator->setAddonName('libapp'); |
689 | 689 | $translation = $translator->translate($str, $str_plurals, $number); |
690 | 690 | } |
@@ -732,16 +732,16 @@ discard block |
||
732 | 732 | */ |
733 | 733 | public function mailTo($addr, $subject = null, $body = null) |
734 | 734 | { |
735 | - $mailTo = 'mailto:' . $addr; |
|
735 | + $mailTo = 'mailto:'.$addr; |
|
736 | 736 | $parameters = array(); |
737 | 737 | if (isset($subject)) { |
738 | - $parameters[] = 'subject=' . $subject; |
|
738 | + $parameters[] = 'subject='.$subject; |
|
739 | 739 | } |
740 | 740 | if (isset($body)) { |
741 | - $parameters[] = 'body=' . $body; |
|
741 | + $parameters[] = 'body='.$body; |
|
742 | 742 | } |
743 | 743 | if (!empty($parameters)) { |
744 | - $mailTo .= '?' . implode('&', $parameters); |
|
744 | + $mailTo .= '?'.implode('&', $parameters); |
|
745 | 745 | } |
746 | 746 | |
747 | 747 | return $mailTo; |
@@ -792,7 +792,7 @@ discard block |
||
792 | 792 | } |
793 | 793 | |
794 | 794 | $number = number_format($number, $decimals, ',', ' '); |
795 | - return str_replace(' ', bab_nbsp(), $number . ' ' . $prefix . $unitSymbol); |
|
795 | + return str_replace(' ', bab_nbsp(), $number.' '.$prefix.$unitSymbol); |
|
796 | 796 | } |
797 | 797 | |
798 | 798 | |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | } |
813 | 813 | |
814 | 814 | if (!isset($format)) { |
815 | - $format = \bab_registry::get('/' . $this->addonName . '/numberFormat', $PhoneNumber->getDefaultFormat()); |
|
815 | + $format = \bab_registry::get('/'.$this->addonName.'/numberFormat', $PhoneNumber->getDefaultFormat()); |
|
816 | 816 | } |
817 | 817 | $phoneNumberUtil = $PhoneNumber->PhoneNumberUtil(); |
818 | 818 | |
@@ -854,12 +854,12 @@ discard block |
||
854 | 854 | $rc = new \ReflectionClass($this); |
855 | 855 | $namespace = $rc->getNamespaceName(); |
856 | 856 | $prefix = ''; |
857 | - if(!empty($namespace)){ |
|
857 | + if (!empty($namespace)) { |
|
858 | 858 | $namespaces = explode('\\', $namespace); |
859 | 859 | $prefix = $namespaces[0].'\\'.$namespaces[1].'\Ctrl\\'; |
860 | 860 | } |
861 | 861 | $this->includeController(); |
862 | - return bab_getInstance($prefix.$this->classPrefix . 'Controller')->setApp($this); |
|
862 | + return bab_getInstance($prefix.$this->classPrefix.'Controller')->setApp($this); |
|
863 | 863 | } |
864 | 864 | |
865 | 865 | |
@@ -900,12 +900,12 @@ discard block |
||
900 | 900 | $rc = new \ReflectionClass($this); |
901 | 901 | $namespace = $rc->getNamespaceName(); |
902 | 902 | $prefix = ''; |
903 | - if(!empty($namespace)){ |
|
903 | + if (!empty($namespace)) { |
|
904 | 904 | $namespaces = explode('\\', $namespace); |
905 | 905 | $prefix = $namespaces[0].'\\'.$namespaces[1].'\Ui\\'; |
906 | 906 | } |
907 | 907 | $this->includeUi(); |
908 | - return bab_getInstance($prefix.$this->classPrefix . 'Ui')->setApp($this); |
|
908 | + return bab_getInstance($prefix.$this->classPrefix.'Ui')->setApp($this); |
|
909 | 909 | } |
910 | 910 | |
911 | 911 | /** |
@@ -933,38 +933,38 @@ discard block |
||
933 | 933 | |
934 | 934 | case substr($name, -strlen('SetClassName')) === 'SetClassName': |
935 | 935 | $className = substr($name, 0, strlen($name) - strlen('SetClassName')); |
936 | - if($component = $this->getComponentByName($className)){ |
|
936 | + if ($component = $this->getComponentByName($className)) { |
|
937 | 937 | return $component->getSetClassName(); |
938 | 938 | } |
939 | 939 | $setName = $className.'Set'; |
940 | - return $this->classPrefix . $setName; |
|
940 | + return $this->classPrefix.$setName; |
|
941 | 941 | |
942 | 942 | case substr($name, -strlen('ClassName')) === 'ClassName': |
943 | 943 | $recordName = substr($name, 0, strlen($name) - strlen('ClassName')); |
944 | - if($component = $this->getComponentByName($recordName)){ |
|
944 | + if ($component = $this->getComponentByName($recordName)) { |
|
945 | 945 | return $component->getRecordClassName(); |
946 | 946 | } |
947 | - return $this->classPrefix . $recordName; |
|
947 | + return $this->classPrefix.$recordName; |
|
948 | 948 | |
949 | 949 | case substr($name, 0, strlen('include')) === 'include' && substr($name, -strlen('Set')) === 'Set': |
950 | 950 | $fileNameBase = strtolower(substr(substr($name, 0, strlen($name) - strlen('Set')), strlen('include'))); |
951 | - if($this->getComponentByName($fileNameBase)){ |
|
951 | + if ($this->getComponentByName($fileNameBase)) { |
|
952 | 952 | return; |
953 | 953 | } |
954 | - $path = APP_SET_PATH . $fileNameBase . '.class.php'; |
|
955 | - if(is_file($path)){ |
|
954 | + $path = APP_SET_PATH.$fileNameBase.'.class.php'; |
|
955 | + if (is_file($path)) { |
|
956 | 956 | require_once $path; |
957 | 957 | } |
958 | 958 | return; |
959 | 959 | |
960 | 960 | case substr($name, -strlen('Set')) === 'Set': |
961 | - if($component = $this->getComponentByName(substr($name, 0, strlen($name) -strlen('Set')))){ |
|
961 | + if ($component = $this->getComponentByName(substr($name, 0, strlen($name) - strlen('Set')))) { |
|
962 | 962 | return $component->recordSet(); |
963 | 963 | } |
964 | 964 | |
965 | - $includeMethod = 'include' . $name; |
|
965 | + $includeMethod = 'include'.$name; |
|
966 | 966 | $this->$includeMethod(); |
967 | - $setClassNameMethod = $name . 'ClassName'; |
|
967 | + $setClassNameMethod = $name.'ClassName'; |
|
968 | 968 | $className = $this->$setClassNameMethod(); |
969 | 969 | $set = new $className($this); |
970 | 970 | return $set; |
@@ -972,8 +972,8 @@ discard block |
||
972 | 972 | case ($component = $this->getComponentByName($name)) != false: |
973 | 973 | return $component; |
974 | 974 | default: |
975 | - $setName = $name . 'Set'; |
|
976 | - $recordClassNameMethod = $name . 'ClassName'; |
|
975 | + $setName = $name.'Set'; |
|
976 | + $recordClassNameMethod = $name.'ClassName'; |
|
977 | 977 | $recordClassName = $this->$recordClassNameMethod(); |
978 | 978 | if (isset($arguments[0])) { |
979 | 979 | if ($arguments[0] instanceof $recordClassName) { |
@@ -987,38 +987,38 @@ discard block |
||
987 | 987 | } |
988 | 988 | |
989 | 989 | |
990 | - public function LinkSet(){ |
|
990 | + public function LinkSet() { |
|
991 | 991 | return $this->AppLinkSet(); |
992 | 992 | } |
993 | - public function AppLinkSet(){ |
|
993 | + public function AppLinkSet() { |
|
994 | 994 | return new AppLinkSet($this); |
995 | 995 | } |
996 | 996 | |
997 | - public function CustomFieldSet(){ |
|
997 | + public function CustomFieldSet() { |
|
998 | 998 | return $this->AppCustomFieldSet(); |
999 | 999 | } |
1000 | - public function AppCustomFieldSet(){ |
|
1000 | + public function AppCustomFieldSet() { |
|
1001 | 1001 | return new AppCustomFieldSet($this); |
1002 | 1002 | } |
1003 | 1003 | |
1004 | - public function CustomContainerSet(){ |
|
1004 | + public function CustomContainerSet() { |
|
1005 | 1005 | return $this->AppCustomContainerSet(); |
1006 | 1006 | } |
1007 | - public function AppCustomContainerSet(){ |
|
1007 | + public function AppCustomContainerSet() { |
|
1008 | 1008 | return new AppCustomContainerSet($this); |
1009 | 1009 | } |
1010 | 1010 | |
1011 | - public function CustomSectionSet(){ |
|
1011 | + public function CustomSectionSet() { |
|
1012 | 1012 | return $this->AppCustomSectionSet(); |
1013 | 1013 | } |
1014 | - public function AppCustomSectionSet(){ |
|
1014 | + public function AppCustomSectionSet() { |
|
1015 | 1015 | return new AppCustomSectionSet($this); |
1016 | 1016 | } |
1017 | 1017 | |
1018 | - public function LogSet(){ |
|
1018 | + public function LogSet() { |
|
1019 | 1019 | return $this->AppLogSet(); |
1020 | 1020 | } |
1021 | - public function AppLogSet(){ |
|
1021 | + public function AppLogSet() { |
|
1022 | 1022 | return new AppLogSet($this); |
1023 | 1023 | } |
1024 | 1024 |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInit0aaa67be5f7bedbc88eff25aa142ea59::getLoader(); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | $issues = array(); |
6 | 6 | |
7 | 7 | if (!(PHP_VERSION_ID >= 50300)) { |
8 | - $issues[] = 'Your Composer dependencies require a PHP version ">= 5.3.0". You are running ' . PHP_VERSION . '.'; |
|
8 | + $issues[] = 'Your Composer dependencies require a PHP version ">= 5.3.0". You are running '.PHP_VERSION.'.'; |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | if ($issues) { |
@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | } |
15 | 15 | if (!ini_get('display_errors')) { |
16 | 16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
17 | - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); |
|
17 | + fwrite(STDERR, 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.implode(PHP_EOL, $issues).PHP_EOL.PHP_EOL); |
|
18 | 18 | } elseif (!headers_sent()) { |
19 | - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; |
|
19 | + echo 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)).PHP_EOL.PHP_EOL; |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | trigger_error( |
23 | - 'Composer detected issues in your platform: ' . implode(' ', $issues), |
|
23 | + 'Composer detected issues in your platform: '.implode(' ', $issues), |
|
24 | 24 | E_USER_ERROR |
25 | 25 | ); |
26 | 26 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Capwelton\\LibApp\\' => array($baseDir . '/programs'), |
|
9 | + 'Capwelton\\LibApp\\' => array($baseDir.'/programs'), |
|
10 | 10 | ); |
@@ -404,18 +404,18 @@ discard block |
||
404 | 404 | private function findFileWithExtension($class, $ext) |
405 | 405 | { |
406 | 406 | // PSR-4 lookup |
407 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
407 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
408 | 408 | |
409 | 409 | $first = $class[0]; |
410 | 410 | if (isset($this->prefixLengthsPsr4[$first])) { |
411 | 411 | $subPath = $class; |
412 | 412 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
413 | 413 | $subPath = substr($subPath, 0, $lastPos); |
414 | - $search = $subPath . '\\'; |
|
414 | + $search = $subPath.'\\'; |
|
415 | 415 | if (isset($this->prefixDirsPsr4[$search])) { |
416 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
416 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
417 | 417 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
418 | - if (file_exists($file = $dir . $pathEnd)) { |
|
418 | + if (file_exists($file = $dir.$pathEnd)) { |
|
419 | 419 | return $file; |
420 | 420 | } |
421 | 421 | } |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | |
426 | 426 | // PSR-4 fallback dirs |
427 | 427 | foreach ($this->fallbackDirsPsr4 as $dir) { |
428 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
428 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
429 | 429 | return $file; |
430 | 430 | } |
431 | 431 | } |
@@ -437,14 +437,14 @@ discard block |
||
437 | 437 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
438 | 438 | } else { |
439 | 439 | // PEAR-like class name |
440 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
440 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
441 | 441 | } |
442 | 442 | |
443 | 443 | if (isset($this->prefixesPsr0[$first])) { |
444 | 444 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
445 | 445 | if (0 === strpos($class, $prefix)) { |
446 | 446 | foreach ($dirs as $dir) { |
447 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
447 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
448 | 448 | return $file; |
449 | 449 | } |
450 | 450 | } |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | |
455 | 455 | // PSR-0 fallback dirs |
456 | 456 | foreach ($this->fallbackDirsPsr0 as $dir) { |
457 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
457 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
458 | 458 | return $file; |
459 | 459 | } |
460 | 460 | } |
@@ -6,81 +6,81 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Capwelton\\LibApp\\AppAccessManager' => $baseDir . '/programs/AppAccessManager.php', |
|
10 | - 'Capwelton\\LibApp\\AppComponent' => $baseDir . '/programs/AppComponent.php', |
|
11 | - 'Capwelton\\LibApp\\AppObject' => $baseDir . '/programs/AppObject.php', |
|
12 | - 'Capwelton\\LibApp\\AppObjectInterface' => $baseDir . '/programs/AppObjectInterface.php', |
|
13 | - 'Capwelton\\LibApp\\AppUiObject' => $baseDir . '/programs/AppUiObject.php', |
|
14 | - 'Capwelton\\LibApp\\Ctrl\\AppComponentCtrlRecord' => $baseDir . '/programs/Ctrl/AppComponentCtrlRecord.php', |
|
15 | - 'Capwelton\\LibApp\\Ctrl\\AppController' => $baseDir . '/programs/Ctrl/AppController.php', |
|
16 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlAddonConfiguration' => $baseDir . '/programs/Ctrl/AppCtrlAddonConfiguration.php', |
|
17 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlConfiguration' => $baseDir . '/programs/Ctrl/AppCtrlConfiguration.php', |
|
18 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlCustomContainer' => $baseDir . '/programs/Ctrl/AppCtrlCustomContainer.php', |
|
19 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlCustomField' => $baseDir . '/programs/Ctrl/AppCtrlCustomField.php', |
|
20 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlCustomSection' => $baseDir . '/programs/Ctrl/AppCtrlCustomSection.php', |
|
21 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlNotification' => $baseDir . '/programs/Ctrl/AppCtrlNotification.php', |
|
22 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlRecord' => $baseDir . '/programs/Ctrl/AppCtrlRecord.php', |
|
23 | - 'Capwelton\\LibApp\\Ctrl\\AppCtrlSSE' => $baseDir . '/programs/Ctrl/AppCtrlSSE.php', |
|
24 | - 'Capwelton\\LibApp\\Exceptions\\AppAccessException' => $baseDir . '/programs/Exceptions/AppAccessException.php', |
|
25 | - 'Capwelton\\LibApp\\Exceptions\\AppDeletedRecordException' => $baseDir . '/programs/Exceptions/AppDeletedRecordException.php', |
|
26 | - 'Capwelton\\LibApp\\Exceptions\\AppEmptyResultException' => $baseDir . '/programs/Exceptions/AppEmptyResultException.php', |
|
27 | - 'Capwelton\\LibApp\\Exceptions\\AppException' => $baseDir . '/programs/Exceptions/AppException.php', |
|
28 | - 'Capwelton\\LibApp\\Exceptions\\AppNotFoundException' => $baseDir . '/programs/Exceptions/AppNotFoundException.php', |
|
29 | - 'Capwelton\\LibApp\\Exceptions\\AppSaveException' => $baseDir . '/programs/Exceptions/AppSaveException.php', |
|
30 | - 'Capwelton\\LibApp\\Exceptions\\AppUnknownActionException' => $baseDir . '/programs/Exceptions/AppUnknownActionException.php', |
|
31 | - 'Capwelton\\LibApp\\Func_App' => $baseDir . '/programs/Func_App.php', |
|
32 | - 'Capwelton\\LibApp\\Interfaces\\AppComponentDefinition' => $baseDir . '/programs/Interfaces/AppComponentDefinition.php', |
|
33 | - 'Capwelton\\LibApp\\Interfaces\\AppComponentUi' => $baseDir . '/programs/Interfaces/AppComponentUi.php', |
|
34 | - 'Capwelton\\LibApp\\Interfaces\\AppCtrlRecordInterface' => $baseDir . '/programs/Interfaces/AppCtrlRecordInterface.php', |
|
35 | - 'Capwelton\\LibApp\\Portlet\\AppPortlet' => $baseDir . '/programs/Portlet/AppPortlet.php', |
|
36 | - 'Capwelton\\LibApp\\Portlet\\AppPortletDefinition' => $baseDir . '/programs/Portlet/AppPortletDefinition.php', |
|
37 | - 'Capwelton\\LibApp\\Portlet\\AppPortletUi' => $baseDir . '/programs/Portlet/AppPortletUi.php', |
|
38 | - 'Capwelton\\LibApp\\Portlet\\Func_PortletBackend_App' => $baseDir . '/programs/Portlet/Func_PortletBackend_App.php', |
|
39 | - 'Capwelton\\LibApp\\Portlet\\Notifications\\AppPortletDefinitionNotifications' => $baseDir . '/programs/Portlet/Notifications/AppPortletDefinitionNotifications.php', |
|
40 | - 'Capwelton\\LibApp\\Portlet\\Notifications\\AppPortletUiNotifications' => $baseDir . '/programs/Portlet/Notifications/AppPortletUiNotifications.php', |
|
41 | - 'Capwelton\\LibApp\\Set\\AppCustomContainer' => $baseDir . '/programs/Set/AppCustomContainer.php', |
|
42 | - 'Capwelton\\LibApp\\Set\\AppCustomContainerSet' => $baseDir . '/programs/Set/AppCustomContainerSet.php', |
|
43 | - 'Capwelton\\LibApp\\Set\\AppCustomField' => $baseDir . '/programs/Set/AppCustomField.php', |
|
44 | - 'Capwelton\\LibApp\\Set\\AppCustomFieldSet' => $baseDir . '/programs/Set/AppCustomFieldSet.php', |
|
45 | - 'Capwelton\\LibApp\\Set\\AppCustomSection' => $baseDir . '/programs/Set/AppCustomSection.php', |
|
46 | - 'Capwelton\\LibApp\\Set\\AppCustomSectionSet' => $baseDir . '/programs/Set/AppCustomSectionSet.php', |
|
47 | - 'Capwelton\\LibApp\\Set\\AppLink' => $baseDir . '/programs/Set/AppLink.php', |
|
48 | - 'Capwelton\\LibApp\\Set\\AppLinkSet' => $baseDir . '/programs/Set/AppLinkSet.php', |
|
49 | - 'Capwelton\\LibApp\\Set\\AppLog' => $baseDir . '/programs/Set/AppLog.php', |
|
50 | - 'Capwelton\\LibApp\\Set\\AppLogSet' => $baseDir . '/programs/Set/AppLogSet.php', |
|
51 | - 'Capwelton\\LibApp\\Set\\AppNotification' => $baseDir . '/programs/Set/AppNotification.php', |
|
52 | - 'Capwelton\\LibApp\\Set\\AppNotificationSet' => $baseDir . '/programs/Set/AppNotificationSet.php', |
|
53 | - 'Capwelton\\LibApp\\Set\\AppRecord' => $baseDir . '/programs/Set/AppRecord.php', |
|
54 | - 'Capwelton\\LibApp\\Set\\AppRecordSet' => $baseDir . '/programs/Set/AppRecordSet.php', |
|
55 | - 'Capwelton\\LibApp\\Set\\AppRole' => $baseDir . '/programs/Set/AppRole.php', |
|
56 | - 'Capwelton\\LibApp\\Set\\AppRoleAccess' => $baseDir . '/programs/Set/AppRoleAccess.php', |
|
57 | - 'Capwelton\\LibApp\\Set\\AppRoleAccessSet' => $baseDir . '/programs/Set/AppRoleAccessSet.php', |
|
58 | - 'Capwelton\\LibApp\\Set\\AppRoleSet' => $baseDir . '/programs/Set/AppRoleSet.php', |
|
59 | - 'Capwelton\\LibApp\\Set\\AppSSE' => $baseDir . '/programs/Set/AppSSE.php', |
|
60 | - 'Capwelton\\LibApp\\Set\\AppSSESet' => $baseDir . '/programs/Set/AppSSESet.php', |
|
61 | - 'Capwelton\\LibApp\\Set\\AppTraceableRecord' => $baseDir . '/programs/Set/AppTraceableRecord.php', |
|
62 | - 'Capwelton\\LibApp\\Set\\AppTraceableRecordSet' => $baseDir . '/programs/Set/AppTraceableRecordSet.php', |
|
63 | - 'Capwelton\\LibApp\\Set\\RecordAfterSaveEvent' => $baseDir . '/programs/Set/RecordAfterSaveEvent.php', |
|
64 | - 'Capwelton\\LibApp\\Set\\RecordBeforeSaveEvent' => $baseDir . '/programs/Set/RecordBeforeSaveEvent.php', |
|
65 | - 'Capwelton\\LibApp\\Ui\\AppCardFrame' => $baseDir . '/programs/Ui/AppCardFrame.php', |
|
66 | - 'Capwelton\\LibApp\\Ui\\AppCriteriaEditor' => $baseDir . '/programs/Ui/AppCriteriaEditor.php', |
|
67 | - 'Capwelton\\LibApp\\Ui\\AppCustomFieldEditor' => $baseDir . '/programs/Ui/AppCustomFieldEditor.php', |
|
68 | - 'Capwelton\\LibApp\\Ui\\AppCustomFieldTableView' => $baseDir . '/programs/Ui/AppCustomFieldTableView.php', |
|
69 | - 'Capwelton\\LibApp\\Ui\\AppEditor' => $baseDir . '/programs/Ui/AppEditor.php', |
|
70 | - 'Capwelton\\LibApp\\Ui\\AppExportSelectEditor' => $baseDir . '/programs/Ui/AppExportSelectEditor.php', |
|
71 | - 'Capwelton\\LibApp\\Ui\\AppRecordEditor' => $baseDir . '/programs/Ui/AppRecordEditor.php', |
|
72 | - 'Capwelton\\LibApp\\Ui\\AppRecordFrame' => $baseDir . '/programs/Ui/AppRecordFrame.php', |
|
73 | - 'Capwelton\\LibApp\\Ui\\AppRecordView' => $baseDir . '/programs/Ui/AppRecordView.php', |
|
74 | - 'Capwelton\\LibApp\\Ui\\AppTableModelView' => $baseDir . '/programs/Ui/AppTableModelView.php', |
|
75 | - 'Capwelton\\LibApp\\Ui\\AppTableModelViewColumnSettingsEditor' => $baseDir . '/programs/Ui/AppTableModelViewColumnSettingsEditor.php', |
|
76 | - 'Capwelton\\LibApp\\Ui\\AppToolbar' => $baseDir . '/programs/Ui/AppToolbar.php', |
|
77 | - 'Capwelton\\LibApp\\Ui\\AppUi' => $baseDir . '/programs/Ui/AppUi.php', |
|
78 | - 'Capwelton\\LibApp\\Ui\\Items\\AppChip' => $baseDir . '/programs/Ui/Items/AppChip.php', |
|
79 | - 'Capwelton\\LibApp\\Ui\\Items\\AppShape' => $baseDir . '/programs/Ui/Items/AppShape.php', |
|
80 | - 'Capwelton\\LibApp\\Ui\\Items\\AppShapeCircle' => $baseDir . '/programs/Ui/Items/AppShapeCircle.php', |
|
81 | - 'Capwelton\\LibApp\\Ui\\Items\\AppShapeSquare' => $baseDir . '/programs/Ui/Items/AppShapeSquare.php', |
|
82 | - 'Capwelton\\LibApp\\Ui\\Items\\AppShapeTriangle' => $baseDir . '/programs/Ui/Items/AppShapeTriangle.php', |
|
83 | - 'Capwelton\\LibApp\\Ui\\Page\\AppErrorPage' => $baseDir . '/programs/Ui/Page/AppErrorPage.php', |
|
84 | - 'Capwelton\\LibApp\\Ui\\Page\\AppPage' => $baseDir . '/programs/Ui/Page/AppPage.php', |
|
85 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
9 | + 'Capwelton\\LibApp\\AppAccessManager' => $baseDir.'/programs/AppAccessManager.php', |
|
10 | + 'Capwelton\\LibApp\\AppComponent' => $baseDir.'/programs/AppComponent.php', |
|
11 | + 'Capwelton\\LibApp\\AppObject' => $baseDir.'/programs/AppObject.php', |
|
12 | + 'Capwelton\\LibApp\\AppObjectInterface' => $baseDir.'/programs/AppObjectInterface.php', |
|
13 | + 'Capwelton\\LibApp\\AppUiObject' => $baseDir.'/programs/AppUiObject.php', |
|
14 | + 'Capwelton\\LibApp\\Ctrl\\AppComponentCtrlRecord' => $baseDir.'/programs/Ctrl/AppComponentCtrlRecord.php', |
|
15 | + 'Capwelton\\LibApp\\Ctrl\\AppController' => $baseDir.'/programs/Ctrl/AppController.php', |
|
16 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlAddonConfiguration' => $baseDir.'/programs/Ctrl/AppCtrlAddonConfiguration.php', |
|
17 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlConfiguration' => $baseDir.'/programs/Ctrl/AppCtrlConfiguration.php', |
|
18 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlCustomContainer' => $baseDir.'/programs/Ctrl/AppCtrlCustomContainer.php', |
|
19 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlCustomField' => $baseDir.'/programs/Ctrl/AppCtrlCustomField.php', |
|
20 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlCustomSection' => $baseDir.'/programs/Ctrl/AppCtrlCustomSection.php', |
|
21 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlNotification' => $baseDir.'/programs/Ctrl/AppCtrlNotification.php', |
|
22 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlRecord' => $baseDir.'/programs/Ctrl/AppCtrlRecord.php', |
|
23 | + 'Capwelton\\LibApp\\Ctrl\\AppCtrlSSE' => $baseDir.'/programs/Ctrl/AppCtrlSSE.php', |
|
24 | + 'Capwelton\\LibApp\\Exceptions\\AppAccessException' => $baseDir.'/programs/Exceptions/AppAccessException.php', |
|
25 | + 'Capwelton\\LibApp\\Exceptions\\AppDeletedRecordException' => $baseDir.'/programs/Exceptions/AppDeletedRecordException.php', |
|
26 | + 'Capwelton\\LibApp\\Exceptions\\AppEmptyResultException' => $baseDir.'/programs/Exceptions/AppEmptyResultException.php', |
|
27 | + 'Capwelton\\LibApp\\Exceptions\\AppException' => $baseDir.'/programs/Exceptions/AppException.php', |
|
28 | + 'Capwelton\\LibApp\\Exceptions\\AppNotFoundException' => $baseDir.'/programs/Exceptions/AppNotFoundException.php', |
|
29 | + 'Capwelton\\LibApp\\Exceptions\\AppSaveException' => $baseDir.'/programs/Exceptions/AppSaveException.php', |
|
30 | + 'Capwelton\\LibApp\\Exceptions\\AppUnknownActionException' => $baseDir.'/programs/Exceptions/AppUnknownActionException.php', |
|
31 | + 'Capwelton\\LibApp\\Func_App' => $baseDir.'/programs/Func_App.php', |
|
32 | + 'Capwelton\\LibApp\\Interfaces\\AppComponentDefinition' => $baseDir.'/programs/Interfaces/AppComponentDefinition.php', |
|
33 | + 'Capwelton\\LibApp\\Interfaces\\AppComponentUi' => $baseDir.'/programs/Interfaces/AppComponentUi.php', |
|
34 | + 'Capwelton\\LibApp\\Interfaces\\AppCtrlRecordInterface' => $baseDir.'/programs/Interfaces/AppCtrlRecordInterface.php', |
|
35 | + 'Capwelton\\LibApp\\Portlet\\AppPortlet' => $baseDir.'/programs/Portlet/AppPortlet.php', |
|
36 | + 'Capwelton\\LibApp\\Portlet\\AppPortletDefinition' => $baseDir.'/programs/Portlet/AppPortletDefinition.php', |
|
37 | + 'Capwelton\\LibApp\\Portlet\\AppPortletUi' => $baseDir.'/programs/Portlet/AppPortletUi.php', |
|
38 | + 'Capwelton\\LibApp\\Portlet\\Func_PortletBackend_App' => $baseDir.'/programs/Portlet/Func_PortletBackend_App.php', |
|
39 | + 'Capwelton\\LibApp\\Portlet\\Notifications\\AppPortletDefinitionNotifications' => $baseDir.'/programs/Portlet/Notifications/AppPortletDefinitionNotifications.php', |
|
40 | + 'Capwelton\\LibApp\\Portlet\\Notifications\\AppPortletUiNotifications' => $baseDir.'/programs/Portlet/Notifications/AppPortletUiNotifications.php', |
|
41 | + 'Capwelton\\LibApp\\Set\\AppCustomContainer' => $baseDir.'/programs/Set/AppCustomContainer.php', |
|
42 | + 'Capwelton\\LibApp\\Set\\AppCustomContainerSet' => $baseDir.'/programs/Set/AppCustomContainerSet.php', |
|
43 | + 'Capwelton\\LibApp\\Set\\AppCustomField' => $baseDir.'/programs/Set/AppCustomField.php', |
|
44 | + 'Capwelton\\LibApp\\Set\\AppCustomFieldSet' => $baseDir.'/programs/Set/AppCustomFieldSet.php', |
|
45 | + 'Capwelton\\LibApp\\Set\\AppCustomSection' => $baseDir.'/programs/Set/AppCustomSection.php', |
|
46 | + 'Capwelton\\LibApp\\Set\\AppCustomSectionSet' => $baseDir.'/programs/Set/AppCustomSectionSet.php', |
|
47 | + 'Capwelton\\LibApp\\Set\\AppLink' => $baseDir.'/programs/Set/AppLink.php', |
|
48 | + 'Capwelton\\LibApp\\Set\\AppLinkSet' => $baseDir.'/programs/Set/AppLinkSet.php', |
|
49 | + 'Capwelton\\LibApp\\Set\\AppLog' => $baseDir.'/programs/Set/AppLog.php', |
|
50 | + 'Capwelton\\LibApp\\Set\\AppLogSet' => $baseDir.'/programs/Set/AppLogSet.php', |
|
51 | + 'Capwelton\\LibApp\\Set\\AppNotification' => $baseDir.'/programs/Set/AppNotification.php', |
|
52 | + 'Capwelton\\LibApp\\Set\\AppNotificationSet' => $baseDir.'/programs/Set/AppNotificationSet.php', |
|
53 | + 'Capwelton\\LibApp\\Set\\AppRecord' => $baseDir.'/programs/Set/AppRecord.php', |
|
54 | + 'Capwelton\\LibApp\\Set\\AppRecordSet' => $baseDir.'/programs/Set/AppRecordSet.php', |
|
55 | + 'Capwelton\\LibApp\\Set\\AppRole' => $baseDir.'/programs/Set/AppRole.php', |
|
56 | + 'Capwelton\\LibApp\\Set\\AppRoleAccess' => $baseDir.'/programs/Set/AppRoleAccess.php', |
|
57 | + 'Capwelton\\LibApp\\Set\\AppRoleAccessSet' => $baseDir.'/programs/Set/AppRoleAccessSet.php', |
|
58 | + 'Capwelton\\LibApp\\Set\\AppRoleSet' => $baseDir.'/programs/Set/AppRoleSet.php', |
|
59 | + 'Capwelton\\LibApp\\Set\\AppSSE' => $baseDir.'/programs/Set/AppSSE.php', |
|
60 | + 'Capwelton\\LibApp\\Set\\AppSSESet' => $baseDir.'/programs/Set/AppSSESet.php', |
|
61 | + 'Capwelton\\LibApp\\Set\\AppTraceableRecord' => $baseDir.'/programs/Set/AppTraceableRecord.php', |
|
62 | + 'Capwelton\\LibApp\\Set\\AppTraceableRecordSet' => $baseDir.'/programs/Set/AppTraceableRecordSet.php', |
|
63 | + 'Capwelton\\LibApp\\Set\\RecordAfterSaveEvent' => $baseDir.'/programs/Set/RecordAfterSaveEvent.php', |
|
64 | + 'Capwelton\\LibApp\\Set\\RecordBeforeSaveEvent' => $baseDir.'/programs/Set/RecordBeforeSaveEvent.php', |
|
65 | + 'Capwelton\\LibApp\\Ui\\AppCardFrame' => $baseDir.'/programs/Ui/AppCardFrame.php', |
|
66 | + 'Capwelton\\LibApp\\Ui\\AppCriteriaEditor' => $baseDir.'/programs/Ui/AppCriteriaEditor.php', |
|
67 | + 'Capwelton\\LibApp\\Ui\\AppCustomFieldEditor' => $baseDir.'/programs/Ui/AppCustomFieldEditor.php', |
|
68 | + 'Capwelton\\LibApp\\Ui\\AppCustomFieldTableView' => $baseDir.'/programs/Ui/AppCustomFieldTableView.php', |
|
69 | + 'Capwelton\\LibApp\\Ui\\AppEditor' => $baseDir.'/programs/Ui/AppEditor.php', |
|
70 | + 'Capwelton\\LibApp\\Ui\\AppExportSelectEditor' => $baseDir.'/programs/Ui/AppExportSelectEditor.php', |
|
71 | + 'Capwelton\\LibApp\\Ui\\AppRecordEditor' => $baseDir.'/programs/Ui/AppRecordEditor.php', |
|
72 | + 'Capwelton\\LibApp\\Ui\\AppRecordFrame' => $baseDir.'/programs/Ui/AppRecordFrame.php', |
|
73 | + 'Capwelton\\LibApp\\Ui\\AppRecordView' => $baseDir.'/programs/Ui/AppRecordView.php', |
|
74 | + 'Capwelton\\LibApp\\Ui\\AppTableModelView' => $baseDir.'/programs/Ui/AppTableModelView.php', |
|
75 | + 'Capwelton\\LibApp\\Ui\\AppTableModelViewColumnSettingsEditor' => $baseDir.'/programs/Ui/AppTableModelViewColumnSettingsEditor.php', |
|
76 | + 'Capwelton\\LibApp\\Ui\\AppToolbar' => $baseDir.'/programs/Ui/AppToolbar.php', |
|
77 | + 'Capwelton\\LibApp\\Ui\\AppUi' => $baseDir.'/programs/Ui/AppUi.php', |
|
78 | + 'Capwelton\\LibApp\\Ui\\Items\\AppChip' => $baseDir.'/programs/Ui/Items/AppChip.php', |
|
79 | + 'Capwelton\\LibApp\\Ui\\Items\\AppShape' => $baseDir.'/programs/Ui/Items/AppShape.php', |
|
80 | + 'Capwelton\\LibApp\\Ui\\Items\\AppShapeCircle' => $baseDir.'/programs/Ui/Items/AppShapeCircle.php', |
|
81 | + 'Capwelton\\LibApp\\Ui\\Items\\AppShapeSquare' => $baseDir.'/programs/Ui/Items/AppShapeSquare.php', |
|
82 | + 'Capwelton\\LibApp\\Ui\\Items\\AppShapeTriangle' => $baseDir.'/programs/Ui/Items/AppShapeTriangle.php', |
|
83 | + 'Capwelton\\LibApp\\Ui\\Page\\AppErrorPage' => $baseDir.'/programs/Ui/Page/AppErrorPage.php', |
|
84 | + 'Capwelton\\LibApp\\Ui\\Page\\AppPage' => $baseDir.'/programs/Ui/Page/AppPage.php', |
|
85 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
86 | 86 | ); |
@@ -109,9 +109,9 @@ |
||
109 | 109 | public function isUpdatable() |
110 | 110 | { |
111 | 111 | return $this->all(); |
112 | - if($this->App() |
|
112 | + if ($this->App() |
|
113 | 113 | ->Access() |
114 | - ->administer()){ |
|
114 | + ->administer()) { |
|
115 | 115 | return $this->all(); |
116 | 116 | } |
117 | 117 | return $this->none(); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | break; |
69 | 69 | |
70 | 70 | default: |
71 | - $function = 'Capwelton\LibOrm\ORM_' . $this->fieldtype . 'Field'; |
|
71 | + $function = 'Capwelton\LibOrm\ORM_'.$this->fieldtype.'Field'; |
|
72 | 72 | $field = $function($this->fieldname); |
73 | 73 | break; |
74 | 74 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $labelledItem = $W->LabelledWidget($this->name, $widget, null); |
154 | 154 | $labelledItem->setName($this->fieldname); |
155 | 155 | |
156 | - if(! empty($this->description)){ |
|
156 | + if (!empty($this->description)) { |
|
157 | 157 | $labelledItem->setDescription($this->description); |
158 | 158 | } |
159 | 159 |