Sitellite Application Framework
Class Tree         Index         All Elements

Element index for package Functions

[ a ] [ b ] [ c ] [ f ] [ h ] [ i ] [ l ] [ m ] [ r ] [ s ] [ v ] [ x ]

a

array_change_key_case
in file Functions.php, function array_change_key_case()
    Returns an array with all string keys lowercased or uppercased
array_chunk
in file Functions.php, function array_chunk()
    Provides array_chunk() for PHP 4.1 users.
array_chunk_fill
in file Functions.php, function array_chunk_fill()
    Calls array_chunk(), but adds a parameter $fill, which "fills out" the potentially uneven number if items in the last array with the value of $fill.
array_search
in file Functions.php, function array_search()
    If the PHP version is less than 4.0.5, emulates the array_search() function.
assocify
in file Functions.php, function assocify()
    Turns a regular array into an associative array with a $value => $value new key/value relation. For example, an array [1=>Joe,2=>Jane,3=>Joe] would become [Joe=>Joe,Jane=>Jane]. Please note the loss of duplicate values.
top

b

better_crypt
in file Functions.php, function better_crypt()
    Makes sure that the salt is always two characters in length before sending it to the crypt() function. Also generates its own two character salt if none is provided.
better_crypt_compare
in file Functions.php, function better_crypt_compare()
    Calls the better_crypt() function instead of crypt() when comparing a new password to the original to see if it matches up.
better_strrpos
in file Functions.php, function better_strrpos()
    strrpos() which allows multiple characters in the needle.
top

c

CASE_LOWER
in file Functions.php, constant CASE_LOWER
CASE_UPPER
in file Functions.php, constant CASE_UPPER
commify
in file Functions.php, function commify()
    Adds commas every three numbers from the right of the period to a given number.
top

f

format_filesize
in file Functions.php, function format_filesize()
    Returns a file size formatted in a more human-friendly format, rounded to the nearest Gb, Mb, Kb, or byte.
Functions.php
procedural page Functions.php
top

h

htmlentities_compat
in file Functions.php, function htmlentities_compat()
    Where htmlentities() causes corruption of data in alternate character
htmlentities_reverse
in file Functions.php, function htmlentities_reverse()
    Reverses the htmlentities_compat() function exactly.
html_marker
in file Functions.php, function html_marker()
    Creates an HTML comment padded with dashes for easily marking sections of a document. Hnady for viewing the source of large documents.
top

i

info
in file Functions.php, function info()
    Wraps a print_r() or var_dump() of the given $value with a set of
  tags around it, and echoes it.
is_a
in file Functions.php, function is_a()
    If the PHP version is less than 4.2.0, emulates the is_a() function, which determines whether the object, $class, is of the class specified by $match.
is_assoc
in file Functions.php, function is_assoc()
    Determines whether the specified variable is an associative array.
top

l

localdate
in file Functions.php, function localdate()
    A date() replacement which respects your setlocale() setting.
top

m

make_assoc
in file Functions.php, function make_assoc()
    Creates a single-level associative array out of an array of objects or an array of associative arrays. $key and $value specify the property or array key name to use for their respective values in the new associative array.
make_obj
in file Functions.php, function make_obj()
    Note: Deprecated in favour of a simple:
mime
in file Functions.php, function mime()
    Determines the content type of a file based on a small list of common types.
mime_content_type
in file Functions.php, function mime_content_type()
top

r

readfile_chunked
in file Functions.php, function readfile_chunked()
    Replacement for readfile() in PHP5 which doesn't encounter memory limits.
top

s

sql_split
in file Functions.php, function sql_split()
    Splits an SQL script into distinct queries which can be evaluated or manipulated individually.
top

v

vsprintf
in file Functions.php, function vsprintf()
    If the PHP version is less than 4.1.0, emulates the vsprintf() function using a call_user_func_array() with the sprintf() function. The use of this function in the saf.I18n package was causing fatal errors in Sitellite on earlier PHP versions.
top

x

xmlentities
in file Functions.php, function xmlentities()
    Converts entities to unicode entities (ie. < becomes &#60;).
xmlentities_reverse
in file Functions.php, function xmlentities_reverse()
    Converts XML unicode entities back to their original characters (ie. &#60; becomes <).
top

Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:16:33 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2