|
@@ 658-675 (lines=18) @@
|
| 655 |
|
/** |
| 656 |
|
* Generate constructor for application class. |
| 657 |
|
*/ |
| 658 |
|
protected function generateConstructorApplicationClass() |
| 659 |
|
{ |
| 660 |
|
$class = "\n\t" . '/**'; |
| 661 |
|
$class .= "\n\t" . ' * Render materials list with pager'; |
| 662 |
|
$class .= "\n\t" . ' *'; |
| 663 |
|
$class .= "\n\t" . ' * @param string $navigationId Structure identifier'; |
| 664 |
|
$class .= "\n\t" . ' * @param string $search Keywords to filter table'; |
| 665 |
|
$class .= "\n\t" . ' * @param int $page Current table page'; |
| 666 |
|
$class .= "\n\t" . ' * @return array Asynchronous response containing status and materials list with pager on success'; |
| 667 |
|
$class .= "\n\t" . ' * or just status on asynchronous controller failure'; |
| 668 |
|
$class .= "\n\t" . ' */'; |
| 669 |
|
$class .= "\n\t" . 'public function __async_collection($navigationId = \'0\', $search = \'\', $page = 1)'; |
| 670 |
|
$class .= "\n\t" . '{'; |
| 671 |
|
$class .= "\n\t\t" . 'return parent::__async_collection(self::$navigation, $search, $page);'; |
| 672 |
|
$class .= "\n\t" . '}' . "\n"; |
| 673 |
|
|
| 674 |
|
return $class; |
| 675 |
|
} |
| 676 |
|
|
| 677 |
|
/** |
| 678 |
|
* Generate constructor for application class. |
|
@@ 680-697 (lines=18) @@
|
| 677 |
|
/** |
| 678 |
|
* Generate constructor for application class. |
| 679 |
|
*/ |
| 680 |
|
protected function generateConstructorApplicationCollectionClass() |
| 681 |
|
{ |
| 682 |
|
$class = "\n\t" . '/**'; |
| 683 |
|
$class .= "\n\t" . ' * Generic collection constructor'; |
| 684 |
|
$class .= "\n\t" . ' *'; |
| 685 |
|
$class .= "\n\t" . ' * @param RenderInterface $renderer View render object'; |
| 686 |
|
$class .= "\n\t" . ' * @param QueryInterface $query Query object'; |
| 687 |
|
$class .= "\n\t" . ' */'; |
| 688 |
|
$class .= "\n\t" . 'public function __async_collection($renderer, $query = null, $pager = null)'; |
| 689 |
|
$class .= "\n\t" . '{'; |
| 690 |
|
$class .= "\n\t\t" . 'return parent::__async_collection($renderer, $query = null, $pager = null);'; |
| 691 |
|
$class .= "\n\t\t" . '$this->fields = array('; |
| 692 |
|
$class .= "\n\t\t\t" . 'new Control(),'; |
| 693 |
|
$class .= "\n\t\t" . ');'; |
| 694 |
|
$class .= "\n\t" . '}' . "\n"; |
| 695 |
|
|
| 696 |
|
return $class; |
| 697 |
|
} |
| 698 |
|
} |
| 699 |
|
//[PHPCOMPRESSOR(remove,end)] |
| 700 |
|
|