|
@@ 77-87 (lines=11) @@
|
| 74 |
|
* @param integer $id Unique resource ID |
| 75 |
|
* @return string Generated output |
| 76 |
|
*/ |
| 77 |
|
public function deleteAction( $site = 'default', $resource, $id ) |
| 78 |
|
{ |
| 79 |
|
if( config( 'shop.authorize', true ) ) { |
| 80 |
|
$this->authorize( 'admin' ); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
$cntl = $this->createClient( $site, $resource ); |
| 84 |
|
$content = ( $cntl->delete( $id ) ? : $cntl->search() ); |
| 85 |
|
|
| 86 |
|
return \View::make('shop::admin.jqadm', array( 'content' => $content ) ); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
|
| 90 |
|
/** |
|
@@ 118-128 (lines=11) @@
|
| 115 |
|
* @param string $sitecode Unique site code |
| 116 |
|
* @return string Generated output |
| 117 |
|
*/ |
| 118 |
|
public function saveAction( $site = 'default', $resource ) |
| 119 |
|
{ |
| 120 |
|
if( config( 'shop.authorize', true ) ) { |
| 121 |
|
$this->authorize( 'admin' ); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
$cntl = $this->createClient( $site, $resource ); |
| 125 |
|
$content = ( $cntl->save() ? : $cntl->search() ); |
| 126 |
|
|
| 127 |
|
return \View::make('shop::admin.jqadm', array( 'content' => $content ) ); |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
|
| 131 |
|
/** |