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


PHP vB_AJAX_XML_Builder::print_xml_header方法代码示例

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


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

示例1: process_step

 /**
  * Process a step
  *
  * @var	string	Version
  * @var	int		Step
  * @var	int		Startat
  * @var 	bool	Check table status
  * @var	string	Response from a prompt
  * @var	bool	First run of the script
  * @var	bool	Received an HTML form response
  * @var	array	Values returned from an HTML form
  * @var	array	Options information
  */
 private function process_step($version, $step, $startat, $checktable = true, $response = null, $firstrun = false, $only = false, $htmlsubmit = false, $htmldata = array(), $options = array())
 {
     $script = $this->load_script($version);
     $startstep = $step ? $step : 1;
     $endstep = $script->stepcount;
     $xml = new vB_AJAX_XML_Builder($this->registry, 'text/xml', vB_Template_Runtime::fetchStyleVar('charset'));
     $xml->print_xml_header();
     $xml->add_group('upgrade');
     $only = ($this->scriptinfo['only'] or $only);
     if ($endstep) {
         $result = $this->execute_step($startstep, $startat, $script, $xml, $checktable, $response, $htmlsubmit, $htmldata, $options);
         if ($result and $result['returnvalue']['startat']) {
             $script->log_upgrade_step($startstep, $result['returnvalue']['startat'], $only);
             $nextstep = $startstep;
         } else {
             if ($result and ($result['returnvalue']['prompt'] or $result['returnvalue']['html'])) {
                 $nextstep = $startstep;
             } else {
                 if ($result) {
                     $script->log_upgrade_step($startstep, 0, $only);
                     if ($startstep == $endstep) {
                         $version = $script->SHORT_VERSION;
                         $nextstep = 0;
                     } else {
                         $nextstep = $startstep + 1;
                     }
                 } else {
                     $nextstep = $startstep;
                 }
             }
         }
     } else {
         $script->log_upgrade_step(0, 0, $only);
         $version = $script->SHORT_VERSION;
         $nextstep = 0;
     }
     if ($nextstep == 0) {
         if ($this->scriptinfo['version'] == 'final' or $only) {
             $this->scriptinfo['version'] = 'done';
             $status = $this->phrase['core']['status_done'];
         } else {
             $this->scriptinfo = $this->get_upgrade_start($version);
             $nextscript = $this->load_script($this->scriptinfo['version']);
             if ($nextscript->stepcount) {
                 $status = $this->fetch_status($nextscript->LONG_VERSION, 1, $nextscript->stepcount);
             } else {
                 $status = $this->fetch_status($nextscript->LONG_VERSION);
             }
         }
         $nextstep = 1;
         $this->process_script_end();
     } else {
         $status = $this->fetch_status($script->LONG_VERSION, $nextstep, $endstep);
     }
     if ($result['returnvalue']['startat']) {
         $xml->add_tag('startat', $result['returnvalue']['startat']);
     } else {
         if ($result['returnvalue']['prompt']) {
             $xml->add_tag('prompt', $result['returnvalue']['prompt']);
             if ($result['returnvalue']['confirm']) {
                 $xml->add_tag('confirm', $result['returnvalue']['confirm']);
             }
             if ($result['returnvalue']['hidecancel']) {
                 $xml->add_tag('hidecancel', true);
             }
             if ($result['returnvalue']['cancel']) {
                 $xml->add_tag('cancel', $result['returnvalue']['cancel']);
             }
             if ($result['returnvalue']['ok']) {
                 $xml->add_tag('ok', $result['returnvalue']['ok']);
             }
             if ($result['returnvalue']['title']) {
                 $xml->add_tag('title', $result['returnvalue']['title']);
             }
             if ($result['returnvalue']['reset']) {
                 $xml->add_tag('reset', true);
             }
         } else {
             if ($result['returnvalue']['html']) {
                 $xml->add_tag('html', $result['returnvalue']['html']);
                 if ($result['returnvalue']['width']) {
                     $xml->add_tag('width', $result['returnvalue']['width']);
                 }
                 if ($result['returnvalue']['height']) {
                     $xml->add_tag('height', $result['returnvalue']['height']);
                 }
                 if ($result['returnvalue']['cancel']) {
//.........这里部分代码省略.........
开发者ID:0hyeah,项目名称:yurivn,代码行数:101,代码来源:class_upgrade_ajax.php


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