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


PHP S::entityEncode方法代码示例

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


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

示例1: setErrorMessage

 /**
  * Will trigger the default administration error message;
  *
  * This method will take the error message to show and the URL where to go back, and will display the now default error message
  * indicating the user that he doesn't have the access to do a specific action. We're trying to standardize as much as we can
  * from the redundant administration code we use in our administration pages;
  *
  * @param S $objErrorMessage The error message to show;
  * @param S $objURLToGoBack The URL to go back afterwards;
  */
 public function setErrorMessage(S $objErrorMessage, S $objURLToGoBack)
 {
     // Set the template file ...
     $tpF = new FilePath($this->getPathToSkin()->toRelativePath() . 'error_cannotDoAction.tp');
     TPL::tpSet($objErrorMessage->entityEncode(ENT_QUOTES), new S('actionErrorMessage'), $tpF);
     TPL::tpSet($objURLToGoBack, new S('objURLToGoBack'), $tpF);
     TPL::tpExe($tpF);
 }
开发者ID:ajbm6,项目名称:raphpframework,代码行数:18,代码来源:00_Administration.php

示例2: checkCategoryExistsByURL

 /**
  * Will check that a given category URL exists, before trying to get data for it. This is the good way to program a website
  * where you leave the full administration force to the un-reliable user ...
  *
  * @param S $objCategoryURL The category URL;
  * @return boolean Will return true if the category exists ...
  */
 public function checkCategoryExistsByURL(S $objCategoryURL)
 {
     // Do return ...
     return $this->getCategoryInfoByURL($objCategoryURL->entityEncode(ENT_QUOTES), self::$objCategoryTableFName) instanceof A ? new B(FALSE) : new B(TRUE);
 }
开发者ID:ajbm6,项目名称:raphpframework,代码行数:12,代码来源:00_Texts.php

示例3: setToolTip

 /**
  * Will set the input tooltip;
  *
  * This method, will set the input tooltip attribute, that can be used by, for example, our jQuery based tooltip JS, so that
  * every input can have a hovering info box, that isn't part of the design and that will help the user fill-in the form
  * without much trouble;
  *
  * @param S $objFormAttributeVar
  * @return unknown
  */
 public static final function setToolTip(S $objFormAttributeVar)
 {
     // Do return ...
     return self::setAttribute(new S('tooltip'), $objFormAttributeVar->entityEncode(ENT_QUOTES));
 }
开发者ID:ajbm6,项目名称:raphpframework,代码行数:15,代码来源:13_FRM.php


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