|
@@ 533-550 (lines=18) @@
|
| 530 |
|
/** |
| 531 |
|
* Generate constructor for application class. |
| 532 |
|
*/ |
| 533 |
|
protected function generateConstructorApplicationClass() |
| 534 |
|
{ |
| 535 |
|
$class = "\n\t" . '/**'; |
| 536 |
|
$class .= "\n\t" . ' * Render materials list with pager'; |
| 537 |
|
$class .= "\n\t" . ' *'; |
| 538 |
|
$class .= "\n\t" . ' * @param string $navigationId Structure identifier'; |
| 539 |
|
$class .= "\n\t" . ' * @param string $search Keywords to filter table'; |
| 540 |
|
$class .= "\n\t" . ' * @param int $page Current table page'; |
| 541 |
|
$class .= "\n\t" . ' * @return array Asynchronous response containing status and materials list with pager on success'; |
| 542 |
|
$class .= "\n\t" . ' * or just status on asynchronous controller failure'; |
| 543 |
|
$class .= "\n\t" . ' */'; |
| 544 |
|
$class .= "\n\t" . 'public function __async_collection($navigationId = \'0\', $search = \'\', $page = 1)'; |
| 545 |
|
$class .= "\n\t" . '{'; |
| 546 |
|
$class .= "\n\t\t" . 'return parent::__async_collection(self::$navigation, $search, $page);'; |
| 547 |
|
$class .= "\n\t" . '}' . "\n"; |
| 548 |
|
|
| 549 |
|
return $class; |
| 550 |
|
} |
| 551 |
|
|
| 552 |
|
/** |
| 553 |
|
* Generate constructor for application class. |
|
@@ 555-572 (lines=18) @@
|
| 552 |
|
/** |
| 553 |
|
* Generate constructor for application class. |
| 554 |
|
*/ |
| 555 |
|
protected function generateConstructorApplicationCollectionClass() |
| 556 |
|
{ |
| 557 |
|
$class = "\n\t" . '/**'; |
| 558 |
|
$class .= "\n\t" . ' * Generic collection constructor'; |
| 559 |
|
$class .= "\n\t" . ' *'; |
| 560 |
|
$class .= "\n\t" . ' * @param RenderInterface $renderer View render object'; |
| 561 |
|
$class .= "\n\t" . ' * @param QueryInterface $query Query object'; |
| 562 |
|
$class .= "\n\t" . ' */'; |
| 563 |
|
$class .= "\n\t" . 'public function __async_collection($renderer, $query = null, $pager = null)'; |
| 564 |
|
$class .= "\n\t" . '{'; |
| 565 |
|
$class .= "\n\t\t" . 'return parent::__async_collection($renderer, $query = null, $pager = null);'; |
| 566 |
|
$class .= "\n\t\t" . '$this->fields = array('; |
| 567 |
|
$class .= "\n\t\t\t" . 'new Control(),'; |
| 568 |
|
$class .= "\n\t\t" . ');'; |
| 569 |
|
$class .= "\n\t" . '}' . "\n"; |
| 570 |
|
|
| 571 |
|
return $class; |
| 572 |
|
} |
| 573 |
|
} |
| 574 |
|
//[PHPCOMPRESSOR(remove,end)] |
| 575 |
|
|