/system/includes/utilities.inc.php

Description

*********************************************\

N2F Yverdon v0 * Copyright (c) 2009 Zibings Incorporated * * You should have received a copy of the * Microsoft Reciprocal License along with * this program. If not, see: * <http://opensource.org/licenses/ms-rl.html> *

Functions
callback_toString (line 79)

Returns a string based on the callback provided.

string callback_toString (callback $callback)
  • callback $callback: Callback to return as a string
debugEcho (line 139)

Hand-made print_r() that provides a method list if $showMethods is set to true.

null debugEcho (mixed $mixed, [boolean $return = false], [boolean $showMethods = false], [mixed $prefix = false])
  • mixed $mixed: Item to break down and display
  • boolean $return: Whether or not to return the output from debugEcho()
  • boolean $showMethods: Whether or not to show methods on objects
  • mixed $prefix: Internal for handling recursion
encStr (line 104)

Creates a one-way hash from the provided string. Setting $old to true will use the old algorithm for creating the hash.

string encStr (string $str, [boolean $old = false])
  • string $str: String to hash
  • boolean $old: Whether or not to use the old ZSF algorithm
n2f_proc (line 22)

Runs main process for N2 Framework Yverdon.

null n2f_proc ()
S (line 37)

Pulls a string from the system's string set, given the current system language.

string S (string $key, [ $replacements = null])
  • string $key: Key to search strings definition for
  • array $replacements: Optional array of arguments to replace in the defined string
str_replace_contained (line 348)

Finds and replaces text contained within the $start and $end tags with the $replace sequence. Use of the text between $start and $end is signified in the $replace string using the string '%TEXT%'.

string str_replace_contained (stringt $start, string $end, string $replace, string $text)
  • stringt $start: Beginning tag surrounding text
  • string $end: End tag surrounding text
  • string $replace: String to replace tags and inner text with (reference inner text with %TEXT%)
  • string $text: Subject string to perform search/replace within
str_replace_once (line 317)

Tries to find and replace the search string inside of the subject string once.

string str_replace_once (string $search, string $replace, string $subject)
  • string $search: String to find inside of $subject string
  • string $replace: String to replace first instance of $search string
  • string $subject: String to perform actions upon

Documentation generated on Sat, 23 Jan 2010 11:13:51 -0500 by phpDocumentor 1.4.1