本文整理汇总了PHP中Catalog::getInfoEco方法的典型用法代码示例。如果您正苦于以下问题:PHP Catalog::getInfoEco方法的具体用法?PHP Catalog::getInfoEco怎么用?PHP Catalog::getInfoEco使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Catalog
的用法示例。
在下文中一共展示了Catalog::getInfoEco方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
* expressement interdite.
* Pour obtenir une licence, veuillez contacter la SARL Ether Création a l'adresse: contact@ethercreation.com
* ...........................................................................
* @package ec_ecopresto
* @copyright Copyright (c) 2010-2013 S.A.R.L Ether Création (http://www.ethercreation.com)
* @author Arthur R.
* @license Commercial license
*/
include '../../config/settings.inc.php';
include '../../config/config.inc.php';
include dirname(__FILE__) . '/class/download.class.php';
include dirname(__FILE__) . '/class/catalog.class.php';
include dirname(__FILE__) . '/class/reference.class.php';
$download = new DownloadBinaryFile();
$catalog = new Catalog();
if (Tools::getValue('ec_token') != $catalog->getInfoEco('ECO_TOKEN')) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;
}
$stockD = $catalog->getInfoEco('ECO_URL_STOCK') . $catalog->tabConfig['ID_ECOPRESTO'];
$stockL = 'files/stock.xml';
if ($download->load($stockD) == true) {
$download->saveTo($stockL);
if (($handle = fopen($stockL, 'r')) !== false) {
$etat = $catalog->updateMAJStock();
while (($data = fgetcsv($handle, 10000, ';')) !== false) {
示例2: dirname
* expressement interdite.
* Pour obtenir une licence, veuillez contacter la SARL Ether Création a l'adresse: contact@ethercreation.com
* ...........................................................................
* @package ec_ecopresto
* @copyright Copyright (c) 2010-2013 S.A.R.L Ether Création (http://www.ethercreation.com)
* @author Arthur R.
* @license Commercial license
*/
include '../../config/settings.inc.php';
include '../../config/config.inc.php';
include dirname(__FILE__) . '/class/download.class.php';
include dirname(__FILE__) . '/class/catalog.class.php';
include dirname(__FILE__) . '/class/reference.class.php';
$download = new DownloadBinaryFile();
$catalog = new Catalog();
if (Tools::getValue('ec_token') != $catalog->getInfoEco('ECO_TOKEN')) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;
}
$trackingD = $catalog->getInfoEco('ECO_URL_TRACKING') . $catalog->tabConfig['ID_ECOPRESTO'];
$trackingL = 'files/tracking.xml';
if ($download->load($trackingD) == true) {
$download->saveTo($trackingL);
if (($handle = fopen($trackingL, 'r')) !== false) {
while (($data = fgetcsv($handle, 10000, ';')) !== false) {
$ne = 0;
示例3: dirname
* concedee par la societe Ether Création
* Toute utilisation, reproduction, modification ou distribution du present
* fichier source sans contrat de licence ecrit de la part de la SARL Ether Création est
* expressement interdite.
* Pour obtenir une licence, veuillez contacter la SARL Ether Création a l'adresse: contact@ethercreation.com
* ...........................................................................
* @package ec_ecopresto
* @copyright Copyright (c) 2010-2013 S.A.R.L Ether Création (http://www.ethercreation.com)
* @author Arthur R.
* @license Commercial license
*/
require dirname(__FILE__) . '/../../config/config.inc.php';
require dirname(__FILE__) . '/../../init.php';
require 'class/catalog.class.php';
$catalog = new Catalog();
if (Tools::getValue('ec_token') != $catalog->getInfoEco('ECO_TOKEN')) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;
}
switch ((int) Tools::getValue('majsel')) {
case 1:
$catalog->setSelectProduct(Tools::getValue('ref'), Tools::getValue('etp'));
echo Tools::safeOutput(Tools::getValue('tot')) . ',' . Tools::safeOutput(Tools::getValue('actu')) . ',' . Tools::safeOutput(count($catalog->tabSelectProduct));
break;
case 2:
$catalog->updateCategory(Tools::getValue('rel'), Tools::getValue('cat'));