| @@ 80-88 (lines=9) @@ | ||
| 77 | * |
|
| 78 | * @return string Generated output |
|
| 79 | */ |
|
| 80 | public function copyAction() |
|
| 81 | { |
|
| 82 | if( config( 'shop.authorize', true ) ) { |
|
| 83 | $this->authorize( 'admin' ); |
|
| 84 | } |
|
| 85 | ||
| 86 | $cntl = $this->createClient(); |
|
| 87 | return $this->getHtml( $cntl->copy() ); |
|
| 88 | } |
|
| 89 | ||
| 90 | ||
| 91 | /** |
|
| @@ 96-104 (lines=9) @@ | ||
| 93 | * |
|
| 94 | * @return string Generated output |
|
| 95 | */ |
|
| 96 | public function createAction() |
|
| 97 | { |
|
| 98 | if( config( 'shop.authorize', true ) ) { |
|
| 99 | $this->authorize( 'admin' ); |
|
| 100 | } |
|
| 101 | ||
| 102 | $cntl = $this->createClient(); |
|
| 103 | return $this->getHtml( $cntl->create() ); |
|
| 104 | } |
|
| 105 | ||
| 106 | ||
| 107 | /** |
|
| @@ 128-136 (lines=9) @@ | ||
| 125 | * |
|
| 126 | * @return string Generated output |
|
| 127 | */ |
|
| 128 | public function getAction() |
|
| 129 | { |
|
| 130 | if( config( 'shop.authorize', true ) ) { |
|
| 131 | $this->authorize( 'admin' ); |
|
| 132 | } |
|
| 133 | ||
| 134 | $cntl = $this->createClient(); |
|
| 135 | return $this->getHtml( $cntl->get() ); |
|
| 136 | } |
|
| 137 | ||
| 138 | ||
| 139 | /** |
|