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


PHP XLite::getAdminScript方法代码示例

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


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

示例1: prepareDataForNotification

 /**
  * Prepare data for 'low limit warning' email notifications
  *
  * @return array
  */
 protected function prepareDataForNotification()
 {
     $data = array();
     $product = $this->getProduct();
     $data['product'] = $product;
     $data['name'] = $product->getName();
     $data['sku'] = $this->getDisplaySku();
     $data['amount'] = $this->getAmount();
     $params = array('product_id' => $product->getProductId(), 'page' => 'inventory');
     $data['adminURL'] = \XLite\Core\Converter::buildFullURL('product', '', $params, \XLite::getAdminScript());
     return $data;
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:17,代码来源:ProductVariant.php

示例2: getAdminURL

 /**
  * Defines the admin URL
  *
  * @return string
  */
 protected function getAdminURL()
 {
     return \XLite::getInstance()->getShopURL(\XLite::getAdminScript());
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:9,代码来源:AView.php

示例3: initialize

 /**
  * Initialization
  *
  * @return void
  */
 public static function initialize()
 {
     if (static::isDropCacheRequested()) {
         // Drop classes cache
         \Includes\Decorator\Utils\CacheManager::cleanupCacheIndicators();
         // Redirect to avoid loop
         \Includes\Utils\Operator::redirect(\XLite::getAdminScript() . '?target=main');
     } elseif (static::isSafeModeRequested() && !static::isSafeModeStarted()) {
         $restorePoint = null;
         if (static::isRestoreDateSet()) {
             $restorePoint = \Includes\Utils\ModulesManager::getRestorePoint(static::getRestoreDate());
         }
         if (static::isSoftwareResetEnabled()) {
             if (!($restorePoint != null ^ static::isRestoreDateSet())) {
                 // Put safe mode indicator
                 \Includes\Utils\FileManager::write(static::getIndicatorFileName(), static::getIndicatorFileContent());
                 // Clean cache indicators to force cache generation
                 \Includes\Decorator\Utils\CacheManager::cleanupCacheIndicators();
             } else {
                 $date = \DateTime::createFromFormat(\Includes\Utils\ModulesManager::RESTORE_DATE_FORMAT, static::getRestoreDate());
                 \Includes\Decorator\Utils\PersistentInfo::set('restoreFailed', $date->getTimestamp());
             }
         }
         // Redirect to avoid loop
         \Includes\Utils\Operator::redirect(\XLite::getAdminScript() . '?target=main');
     }
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:32,代码来源:SafeMode.php

示例4: getIframeUrl

 /**
  * Get iframe URL
  *
  * @return string
  */
 public function getIframeUrl()
 {
     return \XLite\Module\CDev\XPaymentsConnector\Core\ZeroAuth::getInstance()->getIframeUrl($this->getCustomerProfile(), \XLite::getAdminScript());
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:9,代码来源:AddNewCard.php

示例5: getFinishOperateAsUrl

 /**
  * Get finishOperateAs action url
  * 
  * @return string
  */
 protected function getFinishOperateAsUrl()
 {
     return \XLite\Core\Converter::buildURL('profile', 'finishOperateAs', array(), \XLite::getAdminScript());
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:9,代码来源:OperateAsUserNotification.php

示例6: getSettingsForm

 /**
  * Return link to settings form
  *
  * @return string
  */
 public function getSettingsForm()
 {
     $params = array('moduleId' => $this->getModuleId(), 'returnTarget' => \XLite::getController()->getTarget());
     return $this->callModuleMethod('getSettingsForm') ?: \XLite\Core\Converter::buildURL('module', '', $params, \XLite::getAdminScript());
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:10,代码来源:Module.php

示例7: getOrderAdminUrl

 /**
  * Returns orders full url in admin area
  *
  * @return string
  */
 protected function getOrderAdminUrl()
 {
     return \XLite\Core\Converter::buildFullURL('order', '', array('order_number' => $this->getOrder()->getOrderNumber()), \XLite::getAdminScript());
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:9,代码来源:Invoice.php

示例8: sendProfileUpdatedCustomer

 /**
  * Send notification about updated profile to the user
  *
  * @param \XLite\Model\Profile $profile  Profile object
  * @param string               $password Profile password OPTIONAL
  *
  * @return void
  */
 public static function sendProfileUpdatedCustomer(\XLite\Model\Profile $profile, $password = null)
 {
     $interface = $profile->isAdmin() ? \XLite::getAdminScript() : \XLite::getCustomerScript();
     $url = \XLite::getInstance()->getShopURL(\XLite\Core\Converter::buildURL('login', '', array(), $interface));
     static::register(array('profile' => $profile, 'password' => $password, 'url' => $url));
     static::compose(static::TYPE_PROFILE_UPDATED_CUSTOMER, static::getSiteAdministratorMail(), $profile->getLogin(), 'profile_modified', array(), true, \XLite::CUSTOMER_INTERFACE, static::getMailer()->getLanguageCode(\XLite::CUSTOMER_INTERFACE, $profile->getLanguage()));
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:15,代码来源:Mailer.php


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