68 Classifieds API

Features
class tree: 68Classifieds | index: 68Classifieds | all elements

 Class Format

Description

Format class handles most formating.

Located in /includes/classes/kernel/Format.php (line 21)


	
			
Method Summary
 void Format ()
 mixed cleanValue (string $theValue, string $theType)
 string dot (string $str, int $len, [string $dots = "..."])
 void do_magic_quotes_gpc ( &$ar, array $ar)
 string filterword (string $value)
 string FormatCurrency (string $amount)
 int formatNumber (int $listingprice)
 void globals_unset ()
 string prepDisplay (string $value)
 string safeAddSlashes (string $theValue)
 string safeHTML (string $value)
 string safeStripSlashes ( $string, string $str)
 string special_chars (string $string)
Methods
Constructor Format (line 28)

Format Constructor

void Format ()
cleanValue (line 201)

Creates safe sql.

mixed cleanValue (string $theValue, string $theType)
  • string $theValue: The value
  • string $theType: The type of value you are entering
dot (line 153)

dot

string dot (string $str, int $len, [string $dots = "..."])
  • string $str: The string
  • int $len: The length you want returned
  • string $dots: the suffix
do_magic_quotes_gpc (line 274)

handle magic_quotes_gpc turned off.

void do_magic_quotes_gpc ( &$ar, array $ar)
  • array $ar
  • &$ar
filterword (line 130)

Filter a string based off bad words from administration.

  • return: The filtered string.
string filterword (string $value)
  • string $value: The value
FormatCurrency (line 76)

FormatCurrency

Attempt to format a currency

string FormatCurrency (string $amount)
  • string $amount: The amount
formatNumber (line 91)

Format an int

int formatNumber (int $listingprice)
  • int $listingprice: The amount
globals_unset (line 244)

Try to unset any Global vars.

void globals_unset ()
prepDisplay (line 41)

Preps the display of a string

string prepDisplay (string $value)
  • string $value: The value
safeAddSlashes (line 169)

Attempts to safely add slashes

string safeAddSlashes (string $theValue)
  • string $theValue: The string
safeHTML (line 63)

Generate safe html

string safeHTML (string $value)
  • string $value: The value
safeStripSlashes (line 182)

Attempts to safely strip slashes

string safeStripSlashes ( $string, string $str)
  • string $str: The string
  • $string
special_chars (line 52)

htmlspecialchars a string

string special_chars (string $string)
  • string $string: The value