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

Class: Bs_FormatConverter

Source Location: /core/util/Bs_FormatConverter.class.php

Class Overview

Bs_Object
   |
   --Bs_FormatConverter

Pseudostatic utility class to convert formats.


Author(s):

Version:

  • 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:43 $

Copyright:

  • blueshoes.org

Methods


Inherited Variables

Inherited Methods

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 30]
Pseudostatic utility class to convert formats.

WISHLIST +----------------+-------------------------+-------------------------+----------------------------+ | FROM TO | CONVERTER LINUX | CONVERTER WIN32 | COMMENTS | +----------------+-------------------------+-------------------------+----------------------------+

all methods are called like 'hexToBin', and not the fancy way 'hex2bin'. this is because of things like 'word62word7' where 'word6ToWord7' looks much better.

dependencies: Bs_System is loaded right away because it's used often. Bs_HtmlUtil is loaded on demand.




Tags:

pattern:  singleton: (pseudostatic)
access:  public
version:  4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:43 $
copyright:  blueshoes.org
author:  Andrej Arn <at blueshoes dot org>


[ Top ]


Class Methods


constructor Bs_FormatConverter [line 33]

Bs_FormatConverter Bs_FormatConverter( )



[ Top ]

method hexToBin [line 46]

a hexToBin( $s $s)

Convert Hex => Bin convert each 2 chars to a bin character.



Tags:

return:  binary string


Parameters:

$s   $s   the hex string

[ Top ]


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