src/articles/classes/Controller/Admin/Content.php
protected function actionToggle(Eresus_CMS_Request $request)
    {
        $article = $this->findArticle($request->query->getInt('id'));
        $article->active = !$article->active;
        $article->getTable()->update($article);

        $response = new Eresus_HTTP_Redirect($this->getPage()->url(array('id' => '')));
        return $response;
    }
protected function actionToggle(Eresus_CMS_Request $request)
    {
        $article = $this->findArticle($request->query->getInt('id'));
        $article->active = !$article->active;
        $article->getTable()->update($article);

        $response = new Eresus_HTTP_Redirect($this->getPage()->url(array('id' => '')));
        return $response;
    }
Переключает активность статьи

@param Eresus_CMS_Request $request

@return Eresus_HTTP_Response