| @@ 112-120 (lines=9) @@ | ||
| 109 | * |
|
| 110 | * @return string Generated output |
|
| 111 | */ |
|
| 112 | public function deleteAction() |
|
| 113 | { |
|
| 114 | if( config( 'shop.authorize', true ) ) { |
|
| 115 | $this->authorize( 'admin' ); |
|
| 116 | } |
|
| 117 | ||
| 118 | $cntl = $this->createClient(); |
|
| 119 | return $this->getHtml( $cntl->delete() . $cntl->search() ); |
|
| 120 | } |
|
| 121 | ||
| 122 | ||
| 123 | /** |
|
| @@ 144-152 (lines=9) @@ | ||
| 141 | * |
|
| 142 | * @return string Generated output |
|
| 143 | */ |
|
| 144 | public function saveAction() |
|
| 145 | { |
|
| 146 | if( config( 'shop.authorize', true ) ) { |
|
| 147 | $this->authorize( 'admin' ); |
|
| 148 | } |
|
| 149 | ||
| 150 | $cntl = $this->createClient(); |
|
| 151 | return $this->getHtml( ( $cntl->save() ? : $cntl->search() ) ); |
|
| 152 | } |
|
| 153 | ||
| 154 | ||
| 155 | /** |
|
| @@ 160-168 (lines=9) @@ | ||
| 157 | * |
|
| 158 | * @return string Generated output |
|
| 159 | */ |
|
| 160 | public function searchAction() |
|
| 161 | { |
|
| 162 | if( config( 'shop.authorize', true ) ) { |
|
| 163 | $this->authorize( 'admin' ); |
|
| 164 | } |
|
| 165 | ||
| 166 | $cntl = $this->createClient(); |
|
| 167 | return $this->getHtml( $cntl->search() ); |
|
| 168 | } |
|
| 169 | ||
| 170 | ||
| 171 | /** |
|