@@ -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 | |
@@ -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 |
@@ -23,12 +23,12 @@ |
||
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | |
| 26 | -require_once dirname(__FILE__). '/functions.php'; |
|
| 26 | +require_once dirname(__FILE__).'/functions.php'; |
|
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | function LibApp_upgrade($sVersionBase, $sVersionIni) |
| 30 | 30 | { |
| 31 | - require_once dirname(__FILE__) . '/app.php'; |
|
| 31 | + require_once dirname(__FILE__).'/app.php'; |
|
| 32 | 32 | Func_App::register(); |
| 33 | 33 | |
| 34 | 34 | $App = app_App(); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | 24 | |
| 25 | -require_once APP_SET_PATH . 'traceablerecord.class.php'; |
|
| 25 | +require_once APP_SET_PATH.'traceablerecord.class.php'; |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -317,9 +317,9 @@ discard block |
||
| 317 | 317 | if (is_array($parameters)) { |
| 318 | 318 | $params = array(); |
| 319 | 319 | foreach ($parameters as $key => $value) { |
| 320 | - $params[] = $key . '=' . $value; |
|
| 320 | + $params[] = $key.'='.$value; |
|
| 321 | 321 | } |
| 322 | - $rawField .= ':' . implode(';', $params); |
|
| 322 | + $rawField .= ':'.implode(';', $params); |
|
| 323 | 323 | } |
| 324 | 324 | array_push($rawFields, $rawField); |
| 325 | 325 | $this->fields = implode(',', $rawFields); |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | if (empty($rawField)) { |
| 339 | 339 | continue; |
| 340 | 340 | } |
| 341 | - list($fieldName, ) = explode(':', $rawField); |
|
| 341 | + list($fieldName,) = explode(':', $rawField); |
|
| 342 | 342 | |
| 343 | 343 | if ($removedFieldName == $fieldName) { |
| 344 | 344 | continue; |
@@ -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 | |
@@ -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 | * Provides extensible functionalities to manage an application. |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | $this->addonPrefix = 'libapp'; |
| 46 | 46 | $this->addonName = 'libapp'; |
| 47 | 47 | |
| 48 | - $this->classPrefix = $this->addonPrefix . '_'; |
|
| 49 | - $this->controllerTg = 'addon/' . $this->addonName . '/main'; |
|
| 48 | + $this->classPrefix = $this->addonPrefix.'_'; |
|
| 49 | + $this->controllerTg = 'addon/'.$this->addonName.'/main'; |
|
| 50 | 50 | |
| 51 | 51 | $babDB = bab_getDB(); |
| 52 | 52 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | if (substr($method, 0, 7) === 'include' && substr($method, -3) === 'Set') { |
| 160 | 160 | $incl = $method; |
| 161 | - $classNameMethod = substr($method, strlen('include')) . 'ClassName'; |
|
| 161 | + $classNameMethod = substr($method, strlen('include')).'ClassName'; |
|
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | $classname = $this->$classNameMethod(); |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | // We need to revert to multilang fields before synchronizing. |
| 181 | 181 | $set->useLang(false); |
| 182 | 182 | } |
| 183 | - $sql .= $mysqlbackend->setToSql($set) . "\n"; |
|
| 183 | + $sql .= $mysqlbackend->setToSql($set)."\n"; |
|
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | } |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | if (substr($method, 0, strlen('include')) === 'include' && substr($method, -strlen('Set')) === 'Set') { |
| 213 | 213 | $incl = $method; |
| 214 | - $classNameMethod = substr($method, strlen('include')) . 'ClassName'; |
|
| 214 | + $classNameMethod = substr($method, strlen('include')).'ClassName'; |
|
| 215 | 215 | |
| 216 | 216 | $classname = $this->$classNameMethod(); |
| 217 | 217 | |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | if (class_exists($classname) && method_exists($this, $call)) { |
| 227 | 227 | $set = $this->$call(); |
| 228 | - $sql .= $mysqlbackend->setToSql($set) . "\n"; |
|
| 228 | + $sql .= $mysqlbackend->setToSql($set)."\n"; |
|
| 229 | 229 | } |
| 230 | 230 | } |
| 231 | 231 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | |
| 240 | 240 | public function includeBase() |
| 241 | 241 | { |
| 242 | - require_once APP_PHP_PATH . 'base.class.php'; |
|
| 242 | + require_once APP_PHP_PATH.'base.class.php'; |
|
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /** |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | */ |
| 248 | 248 | public function includeRecordSet() |
| 249 | 249 | { |
| 250 | - require_once APP_SET_PATH . 'record.class.php'; |
|
| 250 | + require_once APP_SET_PATH.'record.class.php'; |
|
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | */ |
| 257 | 257 | public function includeTraceableRecordSet() |
| 258 | 258 | { |
| 259 | - require_once APP_SET_PATH . 'traceablerecord.class.php'; |
|
| 259 | + require_once APP_SET_PATH.'traceablerecord.class.php'; |
|
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | */ |
| 273 | 273 | public function includeLogSet() |
| 274 | 274 | { |
| 275 | - require_once APP_SET_PATH . 'log.class.php'; |
|
| 275 | + require_once APP_SET_PATH.'log.class.php'; |
|
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | /** |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | */ |
| 289 | 289 | public function LogSetClassName() |
| 290 | 290 | { |
| 291 | - return $this->LogClassName() . 'Set'; |
|
| 291 | + return $this->LogClassName().'Set'; |
|
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | /** |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | public function includeLinkSet() |
| 312 | 312 | { |
| 313 | - require_once APP_SET_PATH . 'link.class.php'; |
|
| 313 | + require_once APP_SET_PATH.'link.class.php'; |
|
| 314 | 314 | } |
| 315 | 315 | |
| 316 | 316 | /** |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | */ |
| 327 | 327 | public function LinkSetClassName() |
| 328 | 328 | { |
| 329 | - return $this->LinkClassName() . 'Set'; |
|
| 329 | + return $this->LinkClassName().'Set'; |
|
| 330 | 330 | } |
| 331 | 331 | |
| 332 | 332 | /** |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | */ |
| 348 | 348 | public function includeCustomFieldSet() |
| 349 | 349 | { |
| 350 | - require_once APP_SET_PATH . 'customfield.class.php'; |
|
| 350 | + require_once APP_SET_PATH.'customfield.class.php'; |
|
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | /** |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | */ |
| 364 | 364 | public function CustomFieldSetClassName() |
| 365 | 365 | { |
| 366 | - return $this->CustomFieldClassName() . 'Set'; |
|
| 366 | + return $this->CustomFieldClassName().'Set'; |
|
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | /** |
@@ -385,8 +385,8 @@ discard block |
||
| 385 | 385 | */ |
| 386 | 386 | public function includeCustomSectionSet() |
| 387 | 387 | { |
| 388 | - require_once APP_SET_PATH . 'traceablerecord.class.php'; |
|
| 389 | - require_once APP_SET_PATH . 'customsection.class.php'; |
|
| 388 | + require_once APP_SET_PATH.'traceablerecord.class.php'; |
|
| 389 | + require_once APP_SET_PATH.'customsection.class.php'; |
|
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | /** |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | */ |
| 403 | 403 | public function CustomSectionSetClassName() |
| 404 | 404 | { |
| 405 | - return $this->CustomSectionClassName() . 'Set'; |
|
| 405 | + return $this->CustomSectionClassName().'Set'; |
|
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 | /** |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | */ |
| 425 | 425 | public function includeTagSet() |
| 426 | 426 | { |
| 427 | - require_once APP_SET_PATH . 'tag.class.php'; |
|
| 427 | + require_once APP_SET_PATH.'tag.class.php'; |
|
| 428 | 428 | } |
| 429 | 429 | |
| 430 | 430 | /** |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | */ |
| 441 | 441 | public function TagSetClassName() |
| 442 | 442 | { |
| 443 | - return $this->TagClassName() . 'Set'; |
|
| 443 | + return $this->TagClassName().'Set'; |
|
| 444 | 444 | } |
| 445 | 445 | |
| 446 | 446 | /** |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | return null; |
| 476 | 476 | } |
| 477 | 477 | list($classname, $id) = $refParts; |
| 478 | - $classSet = $classname . 'Set'; |
|
| 478 | + $classSet = $classname.'Set'; |
|
| 479 | 479 | $set = $this->$classSet(); |
| 480 | 480 | if (isset($set)) { |
| 481 | 481 | return $set->get($id); |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | { |
| 495 | 495 | $fullClassName = get_class($record); |
| 496 | 496 | list(, $className) = explode('_', $fullClassName); |
| 497 | - return $className . ':' . $record->id; |
|
| 497 | + return $className.':'.$record->id; |
|
| 498 | 498 | } |
| 499 | 499 | |
| 500 | 500 | |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | */ |
| 522 | 522 | public function translate($str, $str_plurals = null, $number = null) |
| 523 | 523 | { |
| 524 | - require_once APP_PHP_PATH . 'functions.php'; |
|
| 524 | + require_once APP_PHP_PATH.'functions.php'; |
|
| 525 | 525 | $translation = $str; |
| 526 | 526 | if ($translate = bab_functionality::get('Translate/Gettext')) { |
| 527 | 527 | /* @var $translate Func_Translate_Gettext */ |
@@ -572,16 +572,16 @@ discard block |
||
| 572 | 572 | */ |
| 573 | 573 | public function mailTo($addr, $subject = null, $body = null) |
| 574 | 574 | { |
| 575 | - $mailTo = 'mailto:' . $addr; |
|
| 575 | + $mailTo = 'mailto:'.$addr; |
|
| 576 | 576 | $parameters = array(); |
| 577 | 577 | if (isset($subject)) { |
| 578 | - $parameters[] = 'subject=' . $subject; |
|
| 578 | + $parameters[] = 'subject='.$subject; |
|
| 579 | 579 | } |
| 580 | 580 | if (isset($body)) { |
| 581 | - $parameters[] = 'body=' . $body; |
|
| 581 | + $parameters[] = 'body='.$body; |
|
| 582 | 582 | } |
| 583 | 583 | if (!empty($parameters)) { |
| 584 | - $mailTo .= '?' . implode('&', $parameters); |
|
| 584 | + $mailTo .= '?'.implode('&', $parameters); |
|
| 585 | 585 | } |
| 586 | 586 | |
| 587 | 587 | return $mailTo; |
@@ -632,7 +632,7 @@ discard block |
||
| 632 | 632 | } |
| 633 | 633 | |
| 634 | 634 | $number = number_format($number, $decimals, ',', ' '); |
| 635 | - return str_replace(' ', bab_nbsp(), $number . ' ' . $prefix . $unitSymbol); |
|
| 635 | + return str_replace(' ', bab_nbsp(), $number.' '.$prefix.$unitSymbol); |
|
| 636 | 636 | } |
| 637 | 637 | |
| 638 | 638 | |
@@ -652,7 +652,7 @@ discard block |
||
| 652 | 652 | } |
| 653 | 653 | |
| 654 | 654 | if (!isset($format)) { |
| 655 | - $format = bab_registry::get('/' . $this->addonName . '/numberFormat', $PhoneNumber->getDefaultFormat()); |
|
| 655 | + $format = bab_registry::get('/'.$this->addonName.'/numberFormat', $PhoneNumber->getDefaultFormat()); |
|
| 656 | 656 | } |
| 657 | 657 | $phoneNumberUtil = $PhoneNumber->PhoneNumberUtil(); |
| 658 | 658 | |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | */ |
| 674 | 674 | public function includeController() |
| 675 | 675 | { |
| 676 | - require_once APP_PHP_PATH . '/controller.class.php'; |
|
| 676 | + require_once APP_PHP_PATH.'/controller.class.php'; |
|
| 677 | 677 | } |
| 678 | 678 | |
| 679 | 679 | |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | */ |
| 683 | 683 | public function includeRecordController() |
| 684 | 684 | { |
| 685 | - require_once APP_CTRL_PATH . '/record.ctrl.php'; |
|
| 685 | + require_once APP_CTRL_PATH.'/record.ctrl.php'; |
|
| 686 | 686 | } |
| 687 | 687 | |
| 688 | 688 | |
@@ -722,7 +722,7 @@ discard block |
||
| 722 | 722 | */ |
| 723 | 723 | public function includeUi() |
| 724 | 724 | { |
| 725 | - require_once APP_UI_PATH . 'ui.class.php'; |
|
| 725 | + require_once APP_UI_PATH.'ui.class.php'; |
|
| 726 | 726 | } |
| 727 | 727 | |
| 728 | 728 | |
@@ -734,14 +734,14 @@ discard block |
||
| 734 | 734 | public function Ui() |
| 735 | 735 | { |
| 736 | 736 | $this->includeUi(); |
| 737 | - return bab_getInstance($this->classPrefix . 'Ui');//->setApp($this); |
|
| 737 | + return bab_getInstance($this->classPrefix.'Ui'); //->setApp($this); |
|
| 738 | 738 | } |
| 739 | 739 | |
| 740 | 740 | |
| 741 | 741 | |
| 742 | 742 | protected function includeAccess() |
| 743 | 743 | { |
| 744 | - require_once WORKSPACE_PHP_PATH . '/access.class.php'; |
|
| 744 | + require_once WORKSPACE_PHP_PATH.'/access.class.php'; |
|
| 745 | 745 | } |
| 746 | 746 | |
| 747 | 747 | |
@@ -773,29 +773,29 @@ discard block |
||
| 773 | 773 | |
| 774 | 774 | case substr($name, -strlen('SetClassName')) === 'SetClassName': |
| 775 | 775 | $setName = substr($name, 0, strlen($name) - strlen('ClassName')); |
| 776 | - return $this->classPrefix . $setName; |
|
| 776 | + return $this->classPrefix.$setName; |
|
| 777 | 777 | |
| 778 | 778 | case substr($name, -strlen('ClassName')) === 'ClassName': |
| 779 | 779 | $recordName = substr($name, 0, strlen($name) - strlen('ClassName')); |
| 780 | - return $this->classPrefix . $recordName; |
|
| 780 | + return $this->classPrefix.$recordName; |
|
| 781 | 781 | |
| 782 | 782 | case substr($name, 0, strlen('include')) === 'include' && substr($name, -strlen('Set')) === 'Set': |
| 783 | 783 | $fileNameBase = strtolower(substr(substr($name, 0, strlen($name) - strlen('Set')), strlen('include'))); |
| 784 | - require_once PHP_SET_PATH . $fileNameBase . '.class.php'; |
|
| 784 | + require_once PHP_SET_PATH.$fileNameBase.'.class.php'; |
|
| 785 | 785 | return; |
| 786 | 786 | |
| 787 | 787 | case substr($name, -strlen('Set')) === 'Set': |
| 788 | - $includeMethod = 'include' . $name; |
|
| 788 | + $includeMethod = 'include'.$name; |
|
| 789 | 789 | $this->$includeMethod(); |
| 790 | - $setClassNameMethod = $name . 'ClassName'; |
|
| 790 | + $setClassNameMethod = $name.'ClassName'; |
|
| 791 | 791 | $className = $this->$setClassNameMethod(); |
| 792 | 792 | $set = new $className($this); |
| 793 | 793 | return $set; |
| 794 | 794 | |
| 795 | 795 | //case method_exists($this, $name . 'Set'): |
| 796 | 796 | default: |
| 797 | - $setName = $name . 'Set'; |
|
| 798 | - $recordClassNameMethod = $name . 'ClassName'; |
|
| 797 | + $setName = $name.'Set'; |
|
| 798 | + $recordClassNameMethod = $name.'ClassName'; |
|
| 799 | 799 | $recordClassName = $this->$recordClassNameMethod(); |
| 800 | 800 | if (isset($arguments[0])) { |
| 801 | 801 | if ($arguments[0] instanceof $recordClassName) { |