Source for file LC_Page_Rss.php
Documentation is available at LC_Page_Rss.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2010 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(CLASS_PATH . "pages/LC_Page.php");
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Rss.php 18735 2010-06-22 08:53:31Z nanasess $
$this->description = "新着情報";
//XMLテキスト(これがないと正常にRSSとして認識してくれないツールがあるため)
header("Content-type: application/xml");
$this->arrNews = $arrNews;
$this->timestamp = $arrNews[0]['news_date'];
$this->site_title = $arrNews[0]['shop_name'];
$this->email = $arrNews[0]['email'];
$objView->assignobj($this);
* @param SC_Query $objQuery DB操作クラス
* @return array $arrNews 取得結果を配列で返す
$col .= " news_id "; //新着情報ID
$col .= " ,news_title "; //新着情報タイトル
$col .= " ,news_comment "; //新着情報本文
$col .= " ,news_date "; //新着情報日時
$col .= " ,news_url "; //新着情報URL
$col .= " ,news_select "; //新着情報の区分(1:URL、2:本文)
$col .= " ,(SELECT shop_name FROM dtb_baseinfo limit 1) AS shop_name "; //店名
$col .= " ,(SELECT email04 FROM dtb_baseinfo limit 1) AS email "; //代表Emailアドレス
$where = "del_flg = '0'";
$objQuery->setOrder($order);
$arrNews = $objQuery->select($col,$from,$where);
Documentation generated on Fri, 24 Feb 2012 13:59:46 +0900 by Seasoft
|