当前位置: 首页>>代码示例>>PHP>>正文


PHP Tools::displayAsDeprecated方法代码示例

本文整理汇总了PHP中Tools::displayAsDeprecated方法的典型用法代码示例。如果您正苦于以下问题:PHP Tools::displayAsDeprecated方法的具体用法?PHP Tools::displayAsDeprecated怎么用?PHP Tools::displayAsDeprecated使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tools的用法示例。


在下文中一共展示了Tools::displayAsDeprecated方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     Tools::displayAsDeprecated();
     @set_time_limit(0);
     @ini_set('max_execution_time', '0');
     $this->init();
     parent::__construct();
 }
开发者ID:srikanthash09,项目名称:codetestdatld,代码行数:8,代码来源:AdminUpgrade.php

示例2: deleteDiscount

 /**
  * @deprecated 1.5.0, use Cart->removeCartRule()
  */
 public function deleteDiscount($id_cart_rule)
 {
     if (isset($_COOKIE['shopconnector_coupon'])) {
         setcookie('shopconnector_coupon', null, -1, '/');
     }
     Tools::displayAsDeprecated();
     return $this->removeCartRule($id_cart_rule);
 }
开发者ID:adamterepora,项目名称:ShopConnectorIntegrationModules,代码行数:11,代码来源:Cart.php

示例3: display

 public function display()
 {
     require_once dirname(__FILE__) . '../../../../modules/designerpreview/defines.inc.php';
     Tools::safePostVars();
     // assign css_files and js_files at the very last time
     if ((Configuration::get('PS_CSS_THEME_CACHE') || Configuration::get('PS_JS_THEME_CACHE')) && is_writable(_PS_THEME_DIR_ . 'cache')) {
         // CSS compressor management
         if (Configuration::get('PS_CSS_THEME_CACHE')) {
             $this->css_files = Media::cccCSS($this->css_files);
         }
         //JS compressor management
         if (Configuration::get('PS_JS_THEME_CACHE') && !$this->useMobileTheme()) {
             $this->js_files = Media::cccJs($this->js_files);
         }
     }
     $this->context->smarty->assign(array('css_files' => $this->css_files, 'errors' => $this->errors, 'display_header' => $this->display_header, 'display_footer' => $this->display_footer));
     if ((int) implode(explode('.', _PS_VERSION_)) > 1606) {
         // For versions > 1.6.0.6
         $this->context->smarty->assign(array('js_files' => $this->getLayout() && (bool) Configuration::get('PS_JS_DEFER') ? array() : $this->js_files, 'js_defer' => (bool) Configuration::get('PS_JS_DEFER')));
     } else {
         $this->context->smarty->assign(array('js_files' => $this->getLayout() ? array() : $this->js_files));
     }
     $live_edit_content = '';
     // Don't use live edit if on mobile device
     if (!$this->useMobileTheme() && $this->checkLiveEditAccess()) {
         $live_edit_content = $this->getLiveEditFooter();
     }
     $layout = $this->getLayout();
     if ($layout) {
         if ($this->template) {
             $this->context->smarty->assign('template', $this->context->smarty->fetch($this->template) . $live_edit_content);
         } else {
             ob_start();
             $this->displayContent();
             $template = ob_get_contents();
             ob_clean();
             $this->context->smarty->assign('template', $template . $live_edit_content);
         }
         $this->smartyOutputContent($layout);
     } else {
         Tools::displayAsDeprecated('layout.tpl is missing in your theme directory');
         if ($this->display_header) {
             $this->smartyOutputContent(getThemeDir() . 'header.tpl');
         }
         if ($this->template) {
             $this->smartyOutputContent($this->template);
         } else {
             // For retrocompatibility with 1.4 controller
             $this->displayContent();
         }
         if ($this->display_footer) {
             $this->smartyOutputContent(getThemeDir() . 'footer.tpl');
         }
     }
     return true;
 }
开发者ID:tmdhosting,项目名称:TMDHosting-PrestaShop-Technology-Theme,代码行数:56,代码来源:FrontController.php

示例4: includeController

 /**
  * @deprecated since 1.5.0
  */
 public static function includeController($className)
 {
     Tools::displayAsDeprecated();
     if (!class_exists($className, false)) {
         require_once _PS_CORE_DIR_ . '/controllers/' . $className . '.php';
         if (file_exists(_PS_ROOT_DIR_ . '/override/controllers/' . $className . '.php')) {
             require_once _PS_ROOT_DIR_ . '/override/controllers/' . $className . '.php';
         } else {
             $coreClass = new ReflectionClass($className . 'Core');
             if ($coreClass->isAbstract()) {
                 eval('abstract class ' . $className . ' extends ' . $className . 'Core {}');
             } else {
                 eval('class ' . $className . ' extends ' . $className . 'Core {}');
             }
         }
     }
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:20,代码来源:ControllerFactory.php

示例5: includeDatepicker

/**
 * Deprecated since 1.5
 * Use Controller::addJqueryUi('ui.datepicker') instead
 *
 * @param int|array $id id can be a identifier or an array of identifiers
 * @param unknown_type $time
 */
function includeDatepicker($id, $time = false)
{
    Tools::displayAsDeprecated();
    echo '<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/jquery/jquery-ui-1.8.10.custom.min.js"></script>';
    $iso = Db::getInstance()->getValue('SELECT iso_code FROM ' . _DB_PREFIX_ . 'lang WHERE `id_lang` = ' . (int) Context::getContext()->language->id);
    if ($iso != 'en') {
        echo '<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/jquery/ui/i18n/jquery.ui.datepicker-' . Tools::htmlentitiesUTF8($iso) . '.js"></script>';
    }
    echo '<script type="text/javascript">';
    if (is_array($id)) {
        foreach ($id as $id2) {
            bindDatepicker($id2, $time);
        }
    } else {
        bindDatepicker($id, $time);
    }
    echo '</script>';
}
开发者ID:jicheng17,项目名称:vipinsg,代码行数:25,代码来源:functions.php

示例6: includeDatepicker

/**
 * Deprecated since 1.5
 * Use Controller::addJqueryUi('ui.datepicker') instead
 *
 * @param int|array $id id can be a identifier or an array of identifiers
 * @param unknown_type $time
 */
function includeDatepicker($id, $time = false)
{
    Tools::displayAsDeprecated();
    echo '<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/jquery/jquery-ui.will.be.removed.in.1.6.js"></script>';
    echo '<link type="text/css" rel="stylesheet" href="' . __PS_BASE_URI__ . 'js/jquery/ui/themes/ui-lightness/jquery.ui.theme.css" />';
    echo '<link type="text/css" rel="stylesheet" href="' . __PS_BASE_URI__ . 'js/jquery/ui/themes/ui-lightness/jquery.ui.datepicker.css" />';
    $iso = Db::getInstance()->getValue('SELECT iso_code FROM ' . _DB_PREFIX_ . 'lang WHERE `id_lang` = ' . (int) Context::getContext()->language->id);
    if ($iso != 'en') {
        echo '<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/jquery/ui/i18n/jquery.ui.datepicker-' . Tools::htmlentitiesUTF8($iso) . '.js"></script>';
    }
    echo '<script type="text/javascript">';
    if (is_array($id)) {
        foreach ($id as $id2) {
            bindDatepicker($id2, $time);
        }
    } else {
        bindDatepicker($id, $time);
    }
    echo '</script>';
}
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:27,代码来源:functions.php

示例7: property_exists

 /**
  * Function property_exists does not exist in PHP < 5.1
  *
  * @deprecated since 1.5.0 (PHP 5.1 required, so property_exists() is now natively supported)
  *
  * @param object or class $class
  * @param string $property
  *
  * @return boolean
  */
 public static function property_exists($class, $property)
 {
     Tools::displayAsDeprecated();
     if (function_exists('property_exists')) {
         return property_exists($class, $property);
     }
     if (is_object($class)) {
         $vars = get_object_vars($class);
     } else {
         $vars = get_class_vars($class);
     }
     return array_key_exists($property, $vars);
 }
开发者ID:WhisperingTree,项目名称:etagerca,代码行数:23,代码来源:Tools.php

示例8: isDniBool

 /**
  * Check for Dni validity
  *
  * @param string $dni to validate
  * @return bool
  * @deprecated
  */
 public static function isDniBool($dni)
 {
     Tools::displayAsDeprecated();
     return self::isDni($dni) > 0 ? 1 : 0;
 }
开发者ID:khuyennd,项目名称:dev-tasagent,代码行数:12,代码来源:Validate.php

示例9: __call

 public function __call($method, $args)
 {
     Tools::displayAsDeprecated();
     return call_user_func_array(array($this->parent, $method), $args);
 }
开发者ID:jicheng17,项目名称:vipinsg,代码行数:5,代码来源:OrderDiscount.php

示例10: getTaxes

 /**
  * Return taxes associated to this para
  * @deprecated since 1.5
  */
 public static function getTaxes($id_tax_rules_group, $id_country, $id_state, $id_county)
 {
     Tools::displayAsDeprecated();
     return array();
 }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:9,代码来源:TaxRulesGroup.php

示例11: display

 public function display()
 {
     Tools::safePostVars();
     // assign css_files and js_files at the very last time
     if ((Configuration::get('PS_CSS_THEME_CACHE') || Configuration::get('PS_JS_THEME_CACHE')) && is_writable(_PS_THEME_DIR_ . 'cache')) {
         // CSS compressor management
         if (Configuration::get('PS_CSS_THEME_CACHE')) {
             $this->css_files = Media::cccCSS($this->css_files);
         }
         //JS compressor management
         if (Configuration::get('PS_JS_THEME_CACHE') && !$this->useMobileTheme()) {
             $this->js_files = Media::cccJs($this->js_files);
         }
     }
     $this->context->smarty->assign(array('css_files' => $this->css_files, 'js_files' => $this->getLayout() && (bool) Configuration::get('PS_JS_DEFER') ? array() : $this->js_files, 'js_defer' => (bool) Configuration::get('PS_JS_DEFER'), 'errors' => $this->errors, 'display_header' => $this->display_header, 'display_footer' => $this->display_footer));
     $layout = $this->getLayout();
     if ($layout) {
         if ($this->template) {
             $template = $this->context->smarty->fetch($this->template);
         } else {
             ob_start();
             $this->displayContent();
             $template = ob_get_contents();
             ob_clean();
         }
         $template = $this->context->smarty->assign('template', $template);
         $this->smartyOutputContent($layout);
     } else {
         Tools::displayAsDeprecated('layout.tpl is missing in your theme directory');
         if ($this->display_header) {
             $this->smartyOutputContent(_PS_THEME_DIR_ . 'header.tpl');
         }
         if ($this->template) {
             $this->smartyOutputContent($this->template);
         } else {
             // For retrocompatibility with 1.4 controller
             $this->displayContent();
         }
         if ($this->display_footer) {
             $this->smartyOutputContent(_PS_THEME_DIR_ . 'footer.tpl');
         }
     }
     return true;
 }
开发者ID:MacFlay,项目名称:Presta-Domowy,代码行数:44,代码来源:FrontController.php

示例12: getCurrentShop

 /**
  * @deprecated 1.5.0 Use shop->id
  */
 public static function getCurrentShop()
 {
     Tools::displayAsDeprecated();
     return Context::getContext()->shop->id;
 }
开发者ID:gks-stage,项目名称:prestashop,代码行数:8,代码来源:Shop.php

示例13: ds

 /**
  * @deprecated 1.5.0
  */
 public static function ds($sql, $use_cache = 1)
 {
     Tools::displayAsDeprecated();
     Db::s($sql, $use_cache);
     die;
 }
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:9,代码来源:Db.php

示例14: deletePictureToProduct

 public function deletePictureToProduct($id_product, $index)
 {
     Tools::displayAsDeprecated();
     return $this->deleteCustomizationToProduct($id_product, 0);
 }
开发者ID:dev-lav,项目名称:htdocs,代码行数:5,代码来源:Cart.php

示例15: positionImage

    /**
     * Reposition image
     *
     * @param integer $position Position
     * @param boolean $direction Direction
     * @deprecated since version 1.5.0.1 use Image::updatePosition() instead
     */
    public function positionImage($position, $direction)
    {
        Tools::displayAsDeprecated();
        $position = (int) $position;
        $direction = (int) $direction;
        // temporary position
        $high_position = Image::getHighestPosition($this->id_product) + 1;
        Db::getInstance()->execute('
		UPDATE `' . _DB_PREFIX_ . 'image`
		SET `position` = ' . (int) $high_position . '
		WHERE `id_product` = ' . (int) $this->id_product . '
		AND `position` = ' . ($direction ? $position - 1 : $position + 1));
        Db::getInstance()->execute('
		UPDATE `' . _DB_PREFIX_ . 'image`
		SET `position` = `position`' . ($direction ? '-1' : '+1') . '
		WHERE `id_image` = ' . (int) $this->id);
        Db::getInstance()->execute('
		UPDATE `' . _DB_PREFIX_ . 'image`
		SET `position` = ' . $this->position . '
		WHERE `id_product` = ' . (int) $this->id_product . '
		AND `position` = ' . (int) $high_position);
    }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:29,代码来源:Image.php


注:本文中的Tools::displayAsDeprecated方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。