Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ovidiu Mihalas  >  Easy ODS Read  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: Easy ODS Read
Retrieve data from OpenOffice spreadsheet files
Author: By
Last change:
Date: 2010-05-31 01:54
Size: 704 bytes
 

Contents

Class file image Download
<?php 
include "./easyODS.php";

/**
 * We unpacking the *.ods files ZIP arhive to find content.xml path
 * 
 * @var String File path of the *.ods file
 * @var String Directory path where we choose to store the unpacked files must have write permissions
 */
$path easy_ods_read::extract_content_xml("./example.ods","./temp");

/**
 * We create the $easy_ods_read object
 *  
 * @param Integer 0 First spreadsheet
 * @param String $path File path of the content.xml file
 * 
 * @return Object $easy_ods_read Object of the class
 */
$easy_ods_read = new easy_ods_read(0,$path);

/**
 * We take the needed data from the file
 */
print_r($easy_ods_read->extract_data("1","20"));
?>