Пример #1
0
 /**
  * retorna a lista de resultados em formato xml
  * @author Hugo Ferreira da Silva
  * @link http://www.hufersil.com.br/lumine
  * @param boolean $utf8 Converter os dados para UTF8
  * @param boolean $considerDataSelect Indica se pegara somente os dados informados no data select
  * @return string
  */
 public function allToXML($utf8 = true, $considerDataSelect = false)
 {
     return Lumine_Util::array2xml($this->allToArray(false, $considerDataSelect), $utf8);
 }
Пример #2
0
 /**
  * Retorna uma representacao XML do node
  * 
  * @author Hugo Ferreira da Silva
  * @param boolean $withChilds Indica se tambem deve incluir os nodes filhos
  * @return string
  */
 public function toXML($withChilds = true)
 {
     $result[0] = $this->toArray($withChilds);
     return Lumine_Util::array2xml($result);
 }