PHP Classes

File: examples/special.xml

Recommend this page to a friend!
  Classes of Everton da Rosa   Orion2   examples/special.xml   Download  
File: examples/special.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/special.xml
Date: 4 days ago
Size: 792 bytes


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="none"></filter> <csv delimiter="">"</csv> <sql table="" direct="false" host="" user="" password="" dbname=""></sql> <special> foreach($store as $i => $row) { if(($row['id']%2) == 0) { $new[$i] = $row; } } $store = $new; </special> <output>csv</output> </orion>