/Core/functions.php

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Functions
destruct (line 76)

Object destructor

void destruct (mixed $object)
  • mixed $object
is_dir_writeable (line 331)
void is_dir_writeable ( $dir)
  • $dir
is_empty_date (line 130)

Check whether sql date is empty

boolean is_empty_date (string $date)
  • string $date
mageCoreErrorHandler (line 161)

Custom error handler

void mageCoreErrorHandler (integer $errno, string $errstr, string $errfile, integer $errline)
  • integer $errno
  • string $errstr
  • string $errfile
  • integer $errline
mageDebugBacktrace (line 251)
void mageDebugBacktrace ([ $return = false], [ $html = true], [ $showFirst = false])
  • $return
  • $html
  • $showFirst
mageDelTree (line 291)
void mageDelTree ( $path)
  • $path
mageFindClassFile (line 135)
void mageFindClassFile ( $class)
  • $class
mageParseCsv (line 305)
void mageParseCsv ( $string, [ $delimiter = ","], [ $enclosure = '"'], [ $escape = '\\'])
  • $string
  • $delimiter
  • $enclosure
  • $escape
mageSendErrorFooter (line 281)
void mageSendErrorFooter ()
mageSendErrorHeader (line 271)
void mageSendErrorHeader ()
mageUndoMagicQuotes (line 33)

Disable magic quotes in runtime if needed

void mageUndoMagicQuotes ( $array, [ $topLevel = true])
  • $array
  • $topLevel
now (line 119)

Simple sql format date

string now ([ $dayOnly = false], string $format)
  • string $format
  • $dayOnly
sys_get_temp_dir (line 355)
void sys_get_temp_dir ()
uc_words (line 108)

Tiny function to enhance functionality of ucwords

Will capitalize first letters and convert separators if needed

string uc_words (string $str, [string $destSep = '_'], [string $srcSep = '_'])
  • string $str
  • string $destSep
  • string $srcSep
__ (line 93)

Translator function

  • deprecated: 1.3
void __ (string $text, mixed 1)
  • string $text: the text to translate
  • mixed 1: optional parameters to use in sprintf
__autoload (line 60)

Class autoload

  • deprecated:
  • todo: change to spl_autoload_register
void __autoload (string $class)
  • string $class

Documentation generated on Fri, 11 Feb 2011 17:03:48 +0200 by phpDocumentor 1.4.3