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


PHP Grid::ProcessMessages方法代码示例

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


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

示例1: Render

 public function Render(Renderer $renderer)
 {
     try {
         $errorReporting = error_reporting(null);
         GetApplication()->SetOperation(OPERATION_COMMIT_DELETE);
         $this->grid->SetState(OPERATION_COMMIT_DELETE);
         $this->grid->GetState()->SetUseGetToExtractPrimaryKeys(true);
         $this->grid->ProcessMessages();
         header('Content-Type: text/xml');
         if ($this->grid->GetErrorMessage() != '') {
             $xmlWriter = XMLWriterFactory::CreateXMLWriter();
             $xmlWriter->StartDocument('1.0', 'UTF-8');
             $xmlWriter->StartElement('response');
             $xmlWriter->WriteElement('type', 'error');
             $xmlWriter->WriteElement('error_message', $this->grid->GetErrorMessage());
             $xmlWriter->EndElement('response');
             echo $xmlWriter->GetResult();
         } else {
             $xmlWriter = XMLWriterFactory::CreateXMLWriter();
             $xmlWriter->StartDocument('1.0', 'UTF-8');
             $xmlWriter->StartElement('response');
             $xmlWriter->WriteElement('type', 'OK');
             $xmlWriter->EndElement('response');
             echo $xmlWriter->GetResult();
         }
         error_reporting($errorReporting);
     } catch (Exception $e) {
         echo '<?xml version="1.0" encoding="UTF-8"?><response><type>error</type><error_message>' . htmlspecialchars($e->getMessage()) . '</error_message></response>';
     }
 }
开发者ID:outsourcinggithub,项目名称:outsourcing,代码行数:30,代码来源:modal_edit_handler.php

示例2: DoProcessMessages

 function DoProcessMessages()
 {
     if (GetOperation() != OPERATION_RSS) {
         //if (isset($this->AdvancedSearchControl) && $this->OpenAdvancedSearchByDefault())
         //if (!$this->AdvancedSearchControl->HasCondition())
         //    GetApplication()->SetOperation(OPERATION_ADVANCED_SEARCH);
         $this->grid->SetState(GetOperation());
         $advancedSearchApplied = false;
         if (isset($this->AdvancedSearchControl)) {
             $advancedSearchApplied = $this->AdvancedSearchControl->ProcessMessages();
         }
         $this->grid->ProcessMessages();
         if (isset($this->pageNavigator)) {
             $this->pageNavigator->ProcessMessages();
         }
         if ($advancedSearchApplied) {
             $link = $this->CreateLinkBuilder();
             header('Location: ' . $link->GetLink());
             exit;
         }
     }
 }
开发者ID:CivicInfoBC,项目名称:workplan.gov_ver_1.19,代码行数:22,代码来源:page.php

示例3: ProcessMessages

 public function ProcessMessages()
 {
     GetApplication()->SetOperation(OPERATION_VIEW);
     $this->grid->SetState(OPERATION_VIEW);
     $this->grid->ProcessMessages();
 }
开发者ID:martinw0102,项目名称:ProjetSyst,代码行数:6,代码来源:record_card_view.php


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