|
@@ 369-373 (lines=5) @@
|
| 366 |
|
throw new IllegalArguementException('No ActiveRecord available to create!'); |
| 367 |
|
} |
| 368 |
|
|
| 369 |
|
if (class_exists($ActiveRecordType)) { |
| 370 |
|
$record = new $ActiveRecordType(); |
| 371 |
|
} else { |
| 372 |
|
throw new IllegalArguementException('No ActiveRecord ['.$ActiveRecordType.'] available to create!'); |
| 373 |
|
} |
| 374 |
|
|
| 375 |
|
// check the hidden security fields before accepting the form POST data |
| 376 |
|
if (!$this->checkSecurityFields()) { |
|
@@ 457-461 (lines=5) @@
|
| 454 |
|
throw new IllegalArguementException('No ActiveRecord available to edit!'); |
| 455 |
|
} |
| 456 |
|
|
| 457 |
|
if (class_exists($ActiveRecordType)) { |
| 458 |
|
$record = new $ActiveRecordType(); |
| 459 |
|
} else { |
| 460 |
|
throw new IllegalArguementException('No ActiveRecord ['.$ActiveRecordType.'] available to edit!'); |
| 461 |
|
} |
| 462 |
|
|
| 463 |
|
// check the hidden security fields before accepting the form POST data |
| 464 |
|
if (!$this->checkSecurityFields()) { |
|
@@ 555-559 (lines=5) @@
|
| 552 |
|
throw new IllegalArguementException('No ActiveRecord available to edit!'); |
| 553 |
|
} |
| 554 |
|
|
| 555 |
|
if (class_exists($ActiveRecordType)) { |
| 556 |
|
$record = new $ActiveRecordType(); |
| 557 |
|
} else { |
| 558 |
|
throw new IllegalArguementException('No ActiveRecord ['.$ActiveRecordType.'] available to edit!'); |
| 559 |
|
} |
| 560 |
|
|
| 561 |
|
// check the hidden security fields before accepting the form POST data |
| 562 |
|
if (!$this->checkSecurityFields()) { |