php XLite-View-AView类(方法)实例源码

下面列出了php XLite-View-AView 类(方法)源码代码实例,从而了解它的用法。

作者:kirkbauer    项目:kirkx   
/**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'unauthorized/style.less';
     $list[] = 'login/style.less';
     return $list;
 }

作者:kings    项目:cor   
/**
  * Get currencies
  *
  * @return array
  */
 protected function getCurrencies()
 {
     if (!isset($this->currencies)) {
         $this->currencies = parent::getCurrencies();
     }
     return $this->currencies;
 }

作者:kewaunite    项目:xcar   
/**
  * Register files from common repository
  *
  * @return array
  */
 protected function getCommonFiles()
 {
     $list = parent::getCommonFiles();
     $list[static::RESOURCE_JS][] = 'js/chosen.jquery.js';
     $list[static::RESOURCE_CSS][] = 'css/chosen/chosen.css';
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'unauthorized/style.less';
     $list[] = $this->getDir() . '/style.less';
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Register files from common repository
  *
  * @return array
  */
 public function getCommonFiles()
 {
     $list = parent::getCommonFiles();
     $list[static::RESOURCE_JS][] = 'js/core.popup.js';
     $list[static::RESOURCE_JS][] = 'js/core.popup_button.js';
     return $list;
 }

作者:kings    项目:cor   
/**
  * Register JS files
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     if ($this->isIncludeController()) {
         $list[] = 'modules/CDev/GoogleAnalytics/drupal.js';
     }
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Get a list of CSS files required to display the widget properly
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'items_list/model/table/style.css';
     $list[] = 'items_list/model/style.css';
     $list[] = 'modules/XC/ThemeTweaker/images/style.css';
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Get JS files
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     if (!\XLite\Core\Config::getInstance()->Security->customer_security || $this->isHTTPS()) {
         $list[] = 'js/login.js';
     }
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Returns CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     if ($this->isCreate()) {
         $list[] = 'modules/XC/ThemeTweaker/theme_tweaker_template/create.css';
     }
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     if ($this->getOrdersWithFiles()) {
         $list[] = 'modules/CDev/Egoods/files_page.css';
         $list[] = 'browse_server/icons.css';
     }
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * getJSFiles
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     if (!\XLite::isAdminZone() && \XLite\Module\CDev\Paypal\Main::isExpressCheckoutEnabled() && \XLite\Module\CDev\Paypal\Main::isInContextCheckoutAvailable()) {
         $list[] = 'modules/CDev/Paypal/button/in_context.js';
     } else {
         $list[] = 'modules/CDev/Paypal/button/default.js';
     }
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Get a list of JS files required to display the widget properly
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     if (!\XLite::isAdminZone()) {
         $list[] = 'modules/QSL/CloudSearch/loader.js';
         $list[] = 'modules/QSL/CloudSearch/init.js';
         $list[] = 'modules/QSL/CloudSearch/lib/handlebars.min.js';
         $list[] = 'modules/QSL/CloudSearch/lib/jquery.hoverIntent.min.js';
     }
     return $list;
 }

作者:kirkbauer    项目:kirkx   
/**
  * Return theme common files
  *
  * @param boolean $adminZone Admin zone flag OPTIONAL
  *
  * @return array
  */
 protected function getThemeFiles($adminZone = null)
 {
     $list = parent::getThemeFiles($adminZone);
     if (!(null === $adminZone ? \XLite::isAdminZone() : $adminZone)) {
         $list[static::RESOURCE_CSS][] = \XLite\Module\XC\ColorSchemes\Main::getColorSchemeCSS();
         if (!\XLite\Module\XC\ColorSchemes\Main::isDefaultColorScheme()) {
             $list[static::RESOURCE_CSS][] = array('file' => \XLite\Module\XC\ColorSchemes\Main::getColorSchemeLess(), 'media' => 'screen', 'merge' => 'bootstrap/css/bootstrap.less');
         }
     }
     return $list;
 }

作者:kings    项目:cor   
/**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_ORDER => new \XLite\Model\WidgetParam\Object('Order', null, false, '\\XLite\\Model\\Order'), self::PARAM_USE_WRAPPER => new \XLite\Model\WidgetParam\Bool('Use wrapper', false));
 }

作者:kirkbauer    项目:kirkx   
/**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_CART => new \XLite\Model\WidgetParam\Object('Cart', null, false, '\\XLite\\Model\\Cart'));
 }

作者:kings    项目:cor   
/**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/Sale/product_modify_sale/css/style.css';
     return $list;
 }

作者:kewaunite    项目:xcar   
/**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getOrderId() && 0 < count($this->getOrderHistoryEventsBlock());
 }

作者:kirkbauer    项目:kirkx   
/**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !$this->getProcessorId();
 }

作者:kirkbauer    项目:kirkx   
/**
  * Define widget params
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(\XLite\View\Button\Payment\AddMethod::PARAM_PAYMENT_METHOD_TYPE => new \XLite\Model\WidgetParam\Collection('Payment methods type', array()));
 }

作者:kings    项目:cor   
/**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_OPTION)->isModifier();
 }


问题


面经


文章

微信
公众号

扫码关注公众号