本文整理汇总了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');
}
示例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';
}
示例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);
}
示例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'));
}
示例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;
}
示例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'));
}
示例7: setup
/**
* SetUp
*/
public function setup()
{
$this->initPlugins();
// Escaper
sfOutputEscaper::markClassesAsSafe(array());
}
示例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'));
}