public function productDataAccess($params, &$smarty)
    {
        $productId = $this->getRequest()->get('product_id');

        if ($productId !== null) {
            return $this->dataAccessWithI18n(
                "Product",
                $params,
                ProductQuery::create()->filterByPrimaryKey($productId)
            );
        }

        return '';
    }
public function productDataAccess($params, &$smarty)
    {
        $productId = $this->getRequest()->get('product_id');

        if ($productId !== null) {
            return $this->dataAccessWithI18n(
                "Product",
                $params,
                ProductQuery::create()->filterByPrimaryKey($productId)
            );
        }

        return '';
    }
public function productDataAccess ( $ params , & $ smarty ) { $ productId = $ this -> getRequest ( ) -> get ( 'product_id' ) ; if ( $ productId !== null ) { return $ this -> dataAccessWithI18n ( "Product" , $ params , ProductQuery :: create ( ) -> filterByPrimaryKey ( $ productId ) ) ; } return '' ; }
Provides access to an attribute of the current product

@param  array $params
@param  \Smarty $smarty
@return string the value of the requested attribute
Provides access to an attribute of the current product