sDeleteComparison example

$this->productComparisons = new sArticlesComparisons($this$container);
    }

    /** * Delete products from comparision chart * * @param int $article Unique product id - refers to s_articles.id */
    public function sDeleteComparison($article)
    {
        $this->productComparisons->sDeleteComparison($article);
    }

    /** * Delete all products from comparision chart */
    public function sDeleteComparisons()
    {
        $this->productComparisons->sDeleteComparisons();
    }

    /** * Insert products in comparision chart * * @param int $article s_articles.id * * @return bool true/false */
public function addArticleAction()
    {
        if (($productId = $this->Request()->getParam('articleID')) !== null) {
            $this->View()->assign('sCompareAddResult', $this->articles->sAddComparison($productId));
        }
        $this->View()->assign('sComparisons', $this->articles->sGetComparisons());
    }

    public function deleteArticleAction()
    {
        if (($productId = $this->Request()->getParam('articleID')) !== null) {
            $this->articles->sDeleteComparison((int) $productId);
        }
        $this->forward('index');
    }

    public function deleteAllAction()
    {
        $this->articles->sDeleteComparisons();
        $this->forward('index');
    }

    public function getListAction()
    {
Home | Imprint | This part of the site doesn't use cookies.