for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2016
* @package Admin
* @subpackage JQAdm
*/
namespace Aimeos\Admin\JQAdm\Common\Decorator;
* Index rebuild decorator for JQAdm clients
*
class Index extends Base
{
* Updates the index after deleting the item
* @return string|null admin output to display or null for redirecting to the list
public function delete()
$result = $this->getClient()->delete();
$ids = (array) $this->getView()->param( 'id' );
\Aimeos\MShop\Factory::createManager( $this->getContext(), 'index' )->deleteItems( $ids );
return $result;
}
* Rebuilds the index after saving the item
public function save()
$result = $this->getClient()->save();
$item = $this->getView()->item;
if( $item->getId() !== null ) {
\Aimeos\MShop\Factory::createManager( $this->getContext(), 'index' )->saveItem( $item );