blueshoes php application framework and cms            core_file
[ class tree: core_file ] [ index: core_file ] [ all elements ]

Class: Bs_FileConverterExcel

Source Location: /core/file/converter/Bs_FileConverterExcel.class.php

Class Overview

Bs_Object
   |
   --Bs_FileConverter
      |
      --Bs_FileConverterExcel

Pseudostatic utility class to convert files from one format to another.


Author(s):

Version:

  • 4.3.$Revision: 1.4 $ $Date: 2003/09/03 11:06:15 $

Copyright:

  • blueshoes.org

Methods


Inherited Variables

Inherited Methods

Class: Bs_FileConverter

Bs_FileConverter::Bs_FileConverter()
Bs_FileConverter::capable()
Tells whether we can do a conversion or not.
Bs_FileConverter::htmlToPdf()
Bs_FileConverter::htmlToText()
Convert Html => Text at first it stripps all tags, then converts html entities back to orig values.
Bs_FileConverter::htmlToWord()
Bs_FileConverter::loadBsHtmlUtil()
Bs_FileConverter::wordStreamToHtmlStream()
converts a word document to html and saves it to $destination.
Bs_FileConverter::wordStreamToHtmlString()
converts a word document to html and returns it as string.
Bs_FileConverter::wordSummary()
returns information about the given word document.
Bs_FileConverter::wordToAbi()
converts a word document to abiword.
Bs_FileConverter::wordToHtml()
deprecated, use wordStreamToHtmlStream() or wordStreamToHtmlString() instead.
Bs_FileConverter::wordToLatex()
converts a word document to latex.
Bs_FileConverter::wordToText()
converts a word document to plain text.
Bs_FileConverter::wordToWml()
converts a word document to wml.
Bs_FileConverter::wordVersion()
returns information about the word version.

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 35]
Pseudostatic utility class to convert files from one format to another.

WISHLIST -------- FROM TO | CONVERTER LINUX | CONVERTER WIN32 | COMMENTS | ---------------+-------------------------+-------------------------+----------------------------| xls -> html | xlhtml | xlhtml | | xls -> text | | | | xls -> pdf | | | | xls -> csv | xlhtml | catdoc | xlhtml | catdoc | | csv -> xls | biffwriter | | |

dependencies: Bs_FileConverter, XPath




Tags:

pattern:  singleton: (pseudostatic)
pattern:  singleton: (pseudostatic)
access:  public
version:  4.3.$Revision: 1.4 $ $Date: 2003/09/03 11:06:15 $
copyright:  blueshoes.org
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Methods


constructor Bs_FileConverterExcel [line 41]

Bs_FileConverterExcel Bs_FileConverterExcel( )

constructor.



[ Top ]

method capable [line 53]

bool capable( string $functionName)

Tells whether we can do a conversion or not.



Tags:

return:  true if we can, false if not
throws:  NULL on an unknown $functionName


Overrides Bs_FileConverter::capable() (Tells whether we can do a conversion or not.)

Parameters:

string   $functionName   not case sensitive.

[ Top ]

method xlsStreamToArray [line 113]

string xlsStreamToArray( string $source)

reads a microsoft excel document and returns it as php array.



Tags:

throws:  bool FALSE (if not capable, on any error.)
access:  public


Parameters:

string   $source   (path & filename of .xls file)

[ Top ]

method xlsStreamToHtmlString [line 70]

string xlsStreamToHtmlString( string $source)

reads a microsoft excel document and returns it as html.



Parameters:

string   $source   (path & filename of .xls file)

[ Top ]

method xlsToArray [line 147]

void xlsToArray( )

deprecated, renamed function to xlsStreamToArray().



Tags:

deprecated:  


[ Top ]

method xlsToCsv [line 160]

string xlsToCsv( string $fullPath)

reads a microsoft excel document and returns it as csv.



Tags:

throws:  bool FALSE (if not capable, on any error.)
access:  public


Parameters:

string   $fullPath   (path & filename of .xls file)

[ Top ]

method xlsToHtml [line 82]

void xlsToHtml( mixed $source)

deprecated, renamed function to xlsStreamToHtmlString().



Tags:

deprecated:  


[ Top ]

method xlsToXml [line 96]

string xlsToXml( string $fullPath)

reads a microsoft excel document and returns it as xml.

xml output looks like: see file excel.xml.




Parameters:

string   $fullPath   (path & filename of .xls file)

[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:09:06 +0100 by phpDocumentor 1.2.3