當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。