Пример #1
0
    public function debug()
    {
        $title = $this->TableTitle();
        $productID = $this->_productID;
        $productVersion = $this->_productVersion;
        $html = parent::debug() . <<<HTML
\t\t\t<h3>Product_OrderItem class details</h3>
\t\t\t<p>
\t\t\t\t<b>Title : </b>{$title}<br/>
\t\t\t\t<b>Product ID : </b>{$productID}<br/>
\t\t\t\t<b>Product Version : </b>{$productVersion}
\t\t\t</p>
HTML;
        $this->extend('updateDebug', $html);
        return $html;
    }
    /**
     * method for developers only
     * you can access it like this: /shoppingcart/debug/
     * @return String
     */
    public function debug()
    {
        $title = $this->TableTitle();
        $productID = $this->BuyableID;
        $productVersion = $this->Version;
        $html = parent::debug() . <<<HTML
\t\t\t<h3>Product_OrderItem class details</h3>
\t\t\t<p>
\t\t\t\t<b>Title : </b>{$title}<br/>
\t\t\t\t<b>Product ID : </b>{$productID}<br/>
\t\t\t\t<b>Product Version : </b>{$productVersion}
\t\t\t</p>
HTML;
        $updatedHTML = $this->extend('updateDebug', $html);
        if ($updatedHTML !== null && is_array($updatedHTML) && count($updatedHTML)) {
            $html = implode("", $updatedHTML);
        }
        return $html;
    }