本文整理汇总了PHP中XmlParser::getResult方法的典型用法代码示例。如果您正苦于以下问题:PHP XmlParser::getResult方法的具体用法?PHP XmlParser::getResult怎么用?PHP XmlParser::getResult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XmlParser
的用法示例。
在下文中一共展示了XmlParser::getResult方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: postProcess
//.........这里部分代码省略.........
}
if ($attributes["type"] == "textarea" && $attributes["rich"] == "false") {
$attributes["rich"] = false;
}
if ($attributes["type"] != "include") {
$tmp_name = "afExtjsField" . ucfirst($classname);
if ($view == "edit" || $attributes["type"] == "doubletree") {
if ($tmp_name == 'afExtjsFieldCombo') {
$obj = new $tmp_name(isset($columnx) ? $columnx : $form, $attributes, $data);
} else {
$obj = new $tmp_name(isset($columnx) ? $columnx : $form, $attributes);
}
/*
if(isset($attributes["window"])) {
//$obj = new afExtjsFieldCombo($fieldset,array('name'=>'my_combo_button','label'=>'My combo button','help'=>"combo box with button",'comment'=>'comment for combo w button','options'=>array('a'=>'Value A','b'=>'Value B'),'selected'=>'b','button'=>array('text'=>'Trigger','icon'=>'/images/famfamfam/cancel.png'),'window'=>array('title'=>'Window Title','component'=>$this->getForm(),'className'=>'ServerPeer','methodName'=>'getAllAsOptions')));
//$columnx = $columns->startColumn(array('columnWidth'=>5,'labelAlign'=> 'left'));
//$obj = new afExtjsFieldCombo($columnx,array('name'=>'my_combo_button','label'=>'My combo button','help'=>"combo box with button",'comment'=>'comment for combo w button','options'=>array('a'=>'Value A','b'=>'Value B'),'selected'=>'b','button'=>array('text'=>'Trigger','icon'=>'/images/famfamfam/cancel.png'),'window'=>array('title'=>'Window Title','component'=>$this->getForm(),'className'=>'ServerPeer','methodName'=>'getAllAsOptions')));
//$obj = new afExtjsFieldCombo($columnx,$attributes);
} else {
;
}
*/
} else {
if ($attributes["type"] != "file") {
$this->showAttributes($attributes);
$obj = new afExtjsFieldStatic(isset($columnx) ? $columnx : $form, $attributes);
}
}
} else {
$prs = new XmlParser(self::PANEL, false, false, false, false, $attributes["url"]);
if (isset($columnx)) {
$columnx->addMember($prs->getResult());
} else {
$form->addMember($prs->getResult());
}
}
}
}
}
if ($parse["isgrouped"]) {
$columns->endColumn($columnx);
}
if (isset($attributes["break"]) && $attributes["break"] == "true") {
$attrs["columnWidth"] = 1;
$columnx = $columns->startColumn($attrs);
$columns->endColumn($columnx);
$this->is_floated[] = $this->isFloatedSet($set, Util::arraySum($this->is_floated));
if (!$this->is_floated[sizeof($this->is_floated) - 1]) {
$this->is_floated[sizeof($this->is_floated) - 1] = 1;
}
$attrs["columnWidth"] = sprintf("%1.2f", (double) 1 / $this->is_floated[sizeof($this->is_floated) - 1]);
}
}
if ($parse["isgrouped"]) {
$fieldset->endColumns($columns);
if (isset($tabx)) {
$tabx->endFieldSet($fieldset);
$tabs->endTab($tabx);
} else {
$form->endFieldSet($fieldset);
}
} else {
break;
}