Ejemplo n.º 1
0
 /**
  * @param string $action
  *
  * @return mixed
  * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException
  */
 public function execute($action = '')
 {
     return $this->actionHelper->handleDeleteAction($action, function (array $items) {
         $result = $this->seoModel->delete($items);
         $this->seoCache->saveCache();
         return $result;
     });
 }
Ejemplo n.º 2
0
 /**
  * Deletes the given URL alias
  *
  * @param string $path
  *
  * @return boolean
  */
 public function deleteUriAlias($path)
 {
     $path .= $this->preparePath($path);
     $seo = $this->seoRepository->getOneByUri($path);
     return !empty($seo) && $this->seoModel->delete($seo['id']) !== false;
 }