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


PHP AdminBaseController::getInstructions方法代码示例

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


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

示例1: getInstructions

 /**
  * Short Description.
  *
  * @param $id
  * @return null|string
  */
 public function getInstructions($id)
 {
     switch ($id) {
         case self::EMAIL_SENDING_OPTIONS:
             return "<p>These settings control under what circumstances emails are sent out. If you are looking for SMTP server settings, those can be configured under " . CHtml::link("System->Setup->Email Servers", $this->createUrl('system/edit', array('id' => 5))) . ".</p><p>For subject lines, the following variables are available: {storename}, {orderid}, {customername}</p>";
         case self::CUSTOMER_REGISTRATION:
             return "You can edit the Customer database including access levels by clicking " . CHtml::link("Edit Customers", $this->createUrl("databaseadmin/customers"));
         case self::TEMPLATE_OPTIONS:
             return "If you want to choose a new Theme for your site, they can be found under " . CHtml::link("Themes", $this->createUrl("theme/index"));
         case self::INVENTORY:
             return "You can use the code <strong>{qty}</strong> in Inventory Messages to display the actual quantity available.";
         case self::LOCALIZATION:
             return "To edit the actual language strings, use the Translation menu options under " . CHtml::link("Database", $this->createUrl("databaseadmin/index"));
         case self::PRODUCT_PHOTOS:
             if (Yii::app()->params['LIGHTSPEED_MT'] == 1) {
                 return "Change settings for how product images are processed for your Web Store.";
             } else {
                 return "Please note these settings affect photos as they are uploaded. You will need to reflag a product photo and Update Store to see the changes.";
             }
         case self::SEO_PRODUCT:
             return "<P>These settings control the Page Title and Meta Description using keys that represent product information. Each of these keys is wrapped in curly braces ({}). Most represent fields in the Product Card. {crumbtrail} and {rcrumbtrail} (reverse crumbtrail) are the product's category path. Below is the available list of keys:</p><P>{storename}, {name}, {description}, {shortdescription}, {longdescription}, {price}, {family}, {class}, {crumbtrail}, {rcrumbtrail}</p>You can use {storename} and {storetagline} for the homepage.";
         case self::SEO_CATEGORY:
             return "<P>These settings control the Category and Custom Page Titles and Meta Descriptions using keys that represent category name or store information. Each of these keys is wrapped with in curly braces ({}). {crumbtrail} and {rcrumbtrail} (reverse crumbtrail) are the product's category path. Below is the available list of keys:</p>\n<P>{storename}, {name}, {crumbtrail}, {rcrumbtrail}{</p>";
         default:
             return parent::getInstructions($id);
     }
 }
开发者ID:uiDeveloper116,项目名称:webstore,代码行数:33,代码来源:DefaultController.php


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