PHP Classes

File: examples/filter-fn.xml

Recommend this page to a friend!
  Classes of Everton da Rosa   Orion2   examples/filter-fn.xml   Download  
File: examples/filter-fn.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Orion2
Convert files between CSV, SQL, XML, JSON formats
Author: By
Last change: Update of examples/filter-fn.xml
Date: 11 months ago
Size: 776 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8"?> <orion name="Exemplo de utilização do Orion2"> <source_type>fixed</source_type> <description>Este projeto é um exemplo de utilização do Orion2 com arquivo de dados com colunas de largura fixa.</description> <column name="ano" label="Ano" start="0" length="4" sql="" fn=""></column> <column name="id" label="Código" start="4" length="2" sql="" fn=""></column> <column name="orgao" label="Órgão" start="6" length="85" sql="" fn="noSpace"></column> <filter type="fn"> $str = substr($row,0,4); if($str == 2011) { return true; } else { return false; } </filter> <csv delimiter="">"</csv> <sql table="" direct="false" host="" user="" password="" dbname=""></sql> <special></special> <output>csv</output> </orion>