@@ 500-517 (lines=18) @@ | ||
497 | /** |
|
498 | * Generate constructor for application class. |
|
499 | */ |
|
500 | protected function generateConstructorApplicationClass() |
|
501 | { |
|
502 | $class = "\n\t" . '/**'; |
|
503 | $class .= "\n\t" . ' * Render materials list with pager'; |
|
504 | $class .= "\n\t" . ' *'; |
|
505 | $class .= "\n\t" . ' * @param string $navigationId Structure identifier'; |
|
506 | $class .= "\n\t" . ' * @param string $search Keywords to filter table'; |
|
507 | $class .= "\n\t" . ' * @param int $page Current table page'; |
|
508 | $class .= "\n\t" . ' * @return array Asynchronous response containing status and materials list with pager on success'; |
|
509 | $class .= "\n\t" . ' * or just status on asynchronous controller failure'; |
|
510 | $class .= "\n\t" . ' */'; |
|
511 | $class .= "\n\t" . 'public function __async_collection($navigationId = \'0\', $search = \'\', $page = 1)'; |
|
512 | $class .= "\n\t" . '{'; |
|
513 | $class .= "\n\t\t" . 'return parent::__async_collection(self::$navigation, $search, $page);'; |
|
514 | $class .= "\n\t" . '}' . "\n"; |
|
515 | ||
516 | return $class; |
|
517 | } |
|
518 | ||
519 | /** |
|
520 | * Generate constructor for application class. |
|
@@ 522-539 (lines=18) @@ | ||
519 | /** |
|
520 | * Generate constructor for application class. |
|
521 | */ |
|
522 | protected function generateConstructorApplicationCollectionClass() |
|
523 | { |
|
524 | $class = "\n\t" . '/**'; |
|
525 | $class .= "\n\t" . ' * Generic collection constructor'; |
|
526 | $class .= "\n\t" . ' *'; |
|
527 | $class .= "\n\t" . ' * @param RenderInterface $renderer View render object'; |
|
528 | $class .= "\n\t" . ' * @param QueryInterface $query Query object'; |
|
529 | $class .= "\n\t" . ' */'; |
|
530 | $class .= "\n\t" . 'public function __async_collection($renderer, $query = null, $pager = null)'; |
|
531 | $class .= "\n\t" . '{'; |
|
532 | $class .= "\n\t\t" . 'return parent::__async_collection($renderer, $query = null, $pager = null);'; |
|
533 | $class .= "\n\t\t" . '$this->fields = array('; |
|
534 | $class .= "\n\t\t\t" . 'new Control(),'; |
|
535 | $class .= "\n\t\t" . ');'; |
|
536 | $class .= "\n\t" . '}' . "\n"; |
|
537 | ||
538 | return $class; |
|
539 | } |
|
540 | } |
|
541 | //[PHPCOMPRESSOR(remove,end)] |
|
542 |