本文整理汇总了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;
}
示例2: getAdminURL
/**
* Defines the admin URL
*
* @return string
*/
protected function getAdminURL()
{
return \XLite::getInstance()->getShopURL(\XLite::getAdminScript());
}
示例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');
}
}
示例4: getIframeUrl
/**
* Get iframe URL
*
* @return string
*/
public function getIframeUrl()
{
return \XLite\Module\CDev\XPaymentsConnector\Core\ZeroAuth::getInstance()->getIframeUrl($this->getCustomerProfile(), \XLite::getAdminScript());
}
示例5: getFinishOperateAsUrl
/**
* Get finishOperateAs action url
*
* @return string
*/
protected function getFinishOperateAsUrl()
{
return \XLite\Core\Converter::buildURL('profile', 'finishOperateAs', array(), \XLite::getAdminScript());
}
示例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());
}
示例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());
}
示例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()));
}