本文整理匯總了PHP中Documento::setConteudoFromString方法的典型用法代碼示例。如果您正苦於以下問題:PHP Documento::setConteudoFromString方法的具體用法?PHP Documento::setConteudoFromString怎麽用?PHP Documento::setConteudoFromString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Documento
的用法示例。
在下文中一共展示了Documento::setConteudoFromString方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: buscar
public function buscar($onde, $oque)
{
$this->meta = new XMLNode("CRITERIO", $oque);
$transformacao = "";
switch ($onde) {
case 1:
$transformacao = NOME_PASTA;
break;
case 2:
$transformacao = NOME_ARQUIVO;
break;
}
$doc = new Documento();
$doc->setConteudoFromString($this->xml(null, null));
$doc->setApresentacao($transformacao);
return $doc->outPut();
}
示例2: Documento
$pas->setConteudoFromString(utf8_decode($xmlp));
$pas->setApresentacao("pastas.xsl");
echo $pas->outPut();
echo "</pastas>";
?>
</div>
<div style="width:600px;float:left;padding:5px;">
<h3>Arquivos <input type="text" onkeyup="filtrar_arquivos(this)"/></h3>
<?php
echo "<arquivos style=\"position:relative;display:block;margin-top:5px;height:50px;overflow:auto;\">";
$xmla = "<ARQUIVOS>";
$xmla .= $dir->getArquivos()->to_s("xml", "");
$xmla .= "</ARQUIVOS>";
$arq = new Documento();
$arq->setConteudoFromString(utf8_decode($xmla));
$arq->setApresentacao("arquivos.xsl");
echo $arq->outPut();
echo "</arquivos>";
?>
<div style="width:400px;margin:0 auto;">
<p style="text-align:center;"><input type="text" id="arquivo" style="width:325px;"/></p>
<p style="text-align:right;font-family:monospace;"><a onclick="abrir_arquivo()">Abrir</a></p>
</div>
<div id="editor"></div>
</div>
</div>
<?php
}
}
示例3: Documento
<?php
require "../classes/Calendario.php";
require "../classes/Documento.php";
?>
<?php
if (isset($_GET["data"])) {
$data = Data::fromString($_GET["data"]);
} else {
$data = Calendario::hoje();
}
if (isset($_GET["mes"])) {
$data = $data->addmes($_GET["mes"]);
}
$xml = Calendario::xml_mes($data);
$doc = new Documento();
$doc->setConteudoFromString($xml);
$doc->setApresentacao("calendario.xsl");
echo $doc->outPut();