Copyright (c) 2004-2008 qadram software S.L. <support@qadram.com>
Checkout AUTHORS file for more information on the developers
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
CLASS NAME | DESCRIPTION |
| EAbort | EAbort is the exception class for errors that should not display an error message. |
Abort (line 203)
Use Abort to escape from an execution path without reporting an error.
Abort raises a special "silent exception" (EAbort), which operates like any other exception, but does not display an error message to the end user. Abort redirects execution to the end of the last exception block.
assigned (line 147)
This function is the Delphi for Windows equivalent for assigned, and in this case, it checks for a variable if assigned to null or not. Note that $var can contain anything, it doesn't check if it's an object or not.
boolToStr (line 45)
This function takes a PHP boolean value and echoes a valid javascript boolean value (true/false) to the output. You can use it when writting PHP code that generates Javascript code so you don't have to mess with boolean values
extractjscript (line 226)
This function is used to automatically extract all javascript code from an HTML chunk, the splitted code is returned in an array, in which the first item (key 0) is the javascript code and the second item (key 1) is the HTML code without the javascript.
htmlToText (line 105)
This function takes HTML as input, including line breaks and entities, and returns the text in plain text form, by changing
to carriage returns and all entities to their corresponding character.
redirect (line 129)
Use this function to redirect to a script that is in the same project without worring about host or anything else, as the function calculates the right URI to redirect to.
safeunserialize (line 276)
This function first tries to unserialize the $input using the built-in PHP function, and if there is any error, it tries to unserialize using the DBCS safe function __unserialize to try get the value because it may be encoded as DBCS.
textToHtml (line 72)
This function takes plain text as input, including carriage returns and non html chars, and returns the text in HTML form, by changing carriage returns to
and all non html chars exchanged by their corresponding entity.
__unserialize (line 257)
This function allows you to unserialize serialized objects/arrays/variables when working with DBCS (Double Byte Character Sets) because it fixes the length of strings to the real length before unserializing.
If not doing it this way, unserialize will throw an error due incorrect string lengths.