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


PHP sfForm::getToStringException方法代码示例

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


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

示例1: execute

 /**
  * Executes this filter.
  *
  * @param sfFilterChain $filterChain The filter chain.
  *
  * @throws <b>sfInitializeException</b> If an error occurs during view initialization
  * @throws <b>sfViewException</b>       If an error occurs while executing the view
  */
 public function execute($filterChain)
 {
     // execute next filter
     $filterChain->execute();
     if (sfConfig::get('sf_logging_enabled')) {
         $this->context->getEventDispatcher()->notify(new sfEvent($this, 'application.log', array('Render to the client')));
     }
     // get response object
     $response = $this->context->getResponse();
     // hack to rethrow sfForm __toString() exception (see sfForm)
     if (sfForm::hasToStringException()) {
         throw sfForm::getToStringException();
     }
     // send headers + content
     $response->send();
 }
开发者ID:ajith24,项目名称:ajithworld,代码行数:24,代码来源:sfRenderingFilter.class.php

示例2: execute

 /**
  * Executes this filter.
  *
  * @param sfFilterChain $filterChain The filter chain.
  *
  * @throws <b>sfInitializeException</b> If an error occurs during view initialization
  * @throws <b>sfViewException</b>       If an error occurs while executing the view
  */
 public function execute($filterChain)
 {
     // execute next filter
     $filterChain->execute();
     // get response object
     $response = $this->context->getResponse();
     // hack to rethrow sfForm and|or sfFormField __toString() exceptions (see sfForm and sfFormField)
     if (sfForm::hasToStringException()) {
         throw sfForm::getToStringException();
     } else {
         if (sfFormField::hasToStringException()) {
             throw sfFormField::getToStringException();
         }
     }
     // send headers + content
     $response->send();
 }
开发者ID:JimmyVB,项目名称:Symfony-v1.2,代码行数:25,代码来源:sfRenderingFilter.class.php

示例3: execute

 public function execute($filterChain)
 {
     $filterChain->execute();
     $response = $this->context->getResponse();
     if (sfForm::hasToStringException()) {
         throw sfForm::getToStringException();
     } else {
         if (sfFormField::hasToStringException()) {
             throw sfFormField::getToStringException();
         }
     }
     if (sfView::RENDER_VAR != $this->context->getController()->getRenderMode()) {
         $response->send();
     }
 }
开发者ID:seven07ve,项目名称:vendorepuestos,代码行数:15,代码来源:config_core_compile.yml.php

示例4: execute

 public function execute($filterChain)
 {
     $filterChain->execute();
     $response = $this->context->getResponse();
     if (sfForm::hasToStringException()) {
         throw sfForm::getToStringException();
     } else {
         if (sfFormField::hasToStringException()) {
             throw sfFormField::getToStringException();
         }
     }
     $response->send();
 }
开发者ID:kawaikiwii,项目名称:motus,代码行数:13,代码来源:config_core_compile.yml.php

示例5: execute

 public function execute($filterChain)
 {
     $filterChain->execute();
     if (sfConfig::get('sf_logging_enabled')) {
         $this->context->getEventDispatcher()->notify(new sfEvent($this, 'application.log', array('Render to the client')));
     }
     $response = $this->context->getResponse();
     if (sfForm::hasToStringException()) {
         throw sfForm::getToStringException();
     } else {
         if (sfFormField::hasToStringException()) {
             throw sfFormField::getToStringException();
         }
     }
     $response->send();
 }
开发者ID:BackupTheBerlios,项目名称:openphysic-svn,代码行数:16,代码来源:config_core_compile.yml.php


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