Source for file LC_Page_Upgrade_ProductsList.php
Documentation is available at LC_Page_Upgrade_ProductsList.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once 'LC_Page_Upgrade_Base.php';
* オーナーズストア購入商品一覧を返すページクラス.
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Upgrade_ProductsList.php 16856 2007-12-02 05:10:18Z adachi $
$objLog->log('* admin auth start');
$objJson->setError(OSTORE_E_C_ADMIN_AUTH);
$objLog->error(OSTORE_E_C_ADMIN_AUTH);
$objLog->log('* public key check start');
if (empty($public_key)) {
$objJson->setError(OSTORE_E_C_NO_KEY);
$objLog->error(OSTORE_E_C_NO_KEY);
$objLog->log('* http request start');
'eccube_url' =>
SITE_URL,
'public_key' =>
sha1($public_key .
$sha1_key),
$objReq =
$this->request('products_list', $arrPostData);
$objLog->log('* http request check start');
if (PEAR::isError($objReq)) {
$objJson->setError(OSTORE_E_C_HTTP_REQ);
$objLog->error(OSTORE_E_C_HTTP_REQ, $objReq);
$objLog->log('* http response check start');
if ($objReq->getResponseCode() !==
200) {
$objJson->setError(OSTORE_E_C_HTTP_RESP);
$objLog->error(OSTORE_E_C_HTTP_RESP, $objReq);
$body =
$objReq->getResponseBody();
$objRet =
$objJson->decode($body);
$objLog->log('* json deta check start');
$objJson->setError(OSTORE_E_C_FAILED_JSON_PARSE);
$objLog->error(OSTORE_E_C_FAILED_JSON_PARSE, $objReq);
$objLog->log('* json status check start');
if ($objRet->status ===
OSTORE_STATUS_SUCCESS) {
$objLog->log('* get products list ok');
foreach ($objRet->data as $product) {
$objView->assign('arrProducts', $arrProducts);
$template =
'ownersstore/products_list.tpl';
if (!$objView->_smarty->template_exists($template)) {
$objLog->log('* template not exist, use default template');
$template =
DATA_PATH .
'Smarty/templates/default/admin/' .
$template;
$html =
$objView->fetch('ownersstore/products_list.tpl');
$objJson->setSuccess(array(), $html);
$objLog->error($objRet->errcode, $objReq);
Documentation generated on Tue, 28 Apr 2009 18:13:04 +0900 by phpDocumentor 1.4.2