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


PHP sfOutputEscaper::markClassesAsSafe方法代码示例

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


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

示例1: setup

 /**
  * SetUp
  */
 public function setup()
 {
     $this->initPlugins();
     // Escaper
     sfOutputEscaper::markClassesAsSafe(array('sfFeed'));
     $this->enablePlugins('sfDoctrineGuardPlugin');
 }
开发者ID:pycmam,项目名称:neskuchaik.ru,代码行数:10,代码来源:ProjectConfiguration.class.php

示例2: configure

 public function configure()
 {
     sfConfig::set('dm_front_dir', realpath(dirname(__FILE__) . "/.."));
     sfConfig::set('dm_context_type', 'front');
     sfOutputEscaper::markClassesAsSafe(array('dmFrontPageBaseHelper', 'dmFrontLayoutHelper', 'dmHelper', 'dmHtmlTag', 'dmFrontToolBarView', 'dmMenu'));
     require_once sfConfig::get('dm_core_dir') . '/lib/config/dmFactoryConfigHandler.php';
     require_once sfConfig::get('dm_front_dir') . '/lib/config/dmFrontRoutingConfigHandler.php';
 }
开发者ID:runopencode,项目名称:diem-extended,代码行数:8,代码来源:dmFrontPluginConfiguration.class.php

示例3: __construct

 /**
  * Construct method
  * @param string $class Doctrine class name
  * @param integer $maxPerPage Number of row per page
  * @param array $options array of options
  */
 public function __construct($class, $maxPerPage = 10, $options = array())
 {
     $this->widgetSchema = new sfWidgetPagerSchema();
     $this->widgetSchema->setPager($this);
     $this->options = $options;
     $this->setup();
     $this->validateRequiredOptions();
     sfOutputEscaper::markClassesAsSafe(array('sfExtraDoctrinePager'));
     parent::__construct($class, $maxPerPage);
 }
开发者ID:nykopol,项目名称:sfExtraDoctrinePagerPlugin,代码行数:16,代码来源:sfExtraDoctrinePager.class.php

示例4: setup

 /**
  * SetUp
  */
 public function setup()
 {
     $this->initPlugins();
     // Escaper
     sfOutputEscaper::markClassesAsSafe(array('DateTime'));
     // г-но, но без этого Zend_Mail_Message raw письма по русски не читает
     // @see http://framework.zend.com/issues/browse/ZF-3591
     @ini_set('iconv.internal_encoding', 'UTF-8');
     // Событие на получение "из контекста" обменника валют
     // @see sfContext::__call
     $this->dispatcher->connect('context.method_not_found', array(__CLASS__, 'getMyCurrencyExchange'));
     // Обработка события "конфигурация подключения"
     $this->dispatcher->connect('doctrine.configure_connection', array(__CLASS__, 'doctrineConnectionConfigurationEvent'));
 }
开发者ID:ru-easyfinance,项目名称:EasyFinance,代码行数:17,代码来源:ProjectConfiguration.class.php

示例5: initialize

 public function initialize($context, $moduleName, $actionName, $viewName)
 {
     $this->moduleName = $moduleName;
     $this->actionName = $actionName;
     $this->viewName = $viewName;
     $this->context = $context;
     $this->dispatcher = $context->getEventDispatcher();
     sfOutputEscaper::markClassesAsSafe(array('sfForm', 'sfFormField', 'sfFormFieldSchema', 'sfModelGeneratorHelper'));
     $this->attributeHolder = $this->initializeAttributeHolder();
     $this->parameterHolder = new sfParameterHolder();
     $this->parameterHolder->add(sfConfig::get('mod_' . strtolower($moduleName) . '_view_param', array()));
     $request = $context->getRequest();
     $format = $request->getRequestFormat();
     if (null !== $format) {
         if ('html' != $format) {
             $this->setExtension('.' . $format . $this->getExtension());
         }
         if ($mimeType = $request->getMimeType($format)) {
             $this->context->getResponse()->setContentType($mimeType);
             if ('html' != $format) {
                 $this->setDecorator(false);
             }
         }
     }
     $this->dispatcher->notify(new sfEvent($this, 'view.configure_format', array('format' => $format, 'response' => $context->getResponse(), 'request' => $context->getRequest())));
     $this->configure();
     return true;
 }
开发者ID:seven07ve,项目名称:vendorepuestos,代码行数:28,代码来源:config_core_compile.yml.php

示例6: _markClassesAsSafe

 /**
  * Mark necessary Sympal classes as safe
  *
  * @return void
  */
 private function _markClassesAsSafe()
 {
     sfOutputEscaper::markClassesAsSafe(array('sfSympalContent', 'sfSympalContentTranslation', 'sfSympalContentSlot', 'sfSympalContentSlotTranslation', 'sfSympalMenuItem', 'sfSympalMenuItemTranslation', 'sfSympalContentRenderer', 'sfSympalMenu', 'sfParameterHolder', 'sfSympalDataGrid', 'sfSympalUpgradeFromWeb', 'sfSympalServerCheckHtmlRenderer', 'sfSympalSitemapGenerator'));
 }
开发者ID:slemoigne,项目名称:sympal,代码行数:9,代码来源:sfSympalConfiguration.class.php

示例7: setup

 /**
  * SetUp
  */
 public function setup()
 {
     $this->initPlugins();
     // Escaper
     sfOutputEscaper::markClassesAsSafe(array());
 }
开发者ID:pycmam,项目名称:sf-project-template,代码行数:9,代码来源:ProjectConfiguration.class.php

示例8: _markClassesAsSafe

 /**
  * Mark necessary Sympal classes as safe
  * 
  * These classes won't be wrapped with the output escaper
  *
  * @return void
  */
 private static function _markClassesAsSafe()
 {
     sfOutputEscaper::markClassesAsSafe(array('sfSympalMenuItem', 'sfSympalMenuItemTranslation', 'sfSympalMenu'));
 }
开发者ID:sympal,项目名称:sympal,代码行数:11,代码来源:sfSympalMenuPluginConfiguration.class.php


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