phpDocumentor ZNF
Util
[ class tree: ZNF ] [ index: ZNF ] [ all elements ]

Class: ZNF_Util_Utility

Source Location: /Util/Utility.php

Class ZNF_Util_Utility

Class Overview

ZNF_Util_Utility class provides useful methods.

Located in /Util/Utility.php [line 36]



		
				Author(s):
		
		
		API Tags:
Access:  public

Information Tags:
Version:  SVN $Id: Utility.php 44 2007-07-22 23:55:30Z evolic $
Copyright:  2004-2007 The ZNF Development Team
Link:  http://www.zeronotice.org
Since:  Release 0.5.0
License:  LGPL

Methods

[ Top ]
Method Summary
static array   &addAllSlashes()   Applies addslaslashes PHP function to all the elements of an array.
static string   arrayToXML()   Exports a generic array in a well formed XML string.
static boolean   checkEmail()   Checks if an email address is valid.
static string   checkUrl()   Checks if an URL is valid and returns it in the correct format.
static timestamp   getDateTimestamp()   Checks a date and returns is timestamp.
static array   &stripAllSlashes()   Applies stripslaslashes PHP function to all the elements of an array.
ZNF_Util_Utility   __construct()   Private constructor to avoid ZNF_Util_Utility object creation.
void   __destruct()   Destroys the ZNF_Util_Utility object.</>
void   __clone()   Private clonator to avoid ZNF_Util_Utility object clonation.

[ Top ]
Methods
static method addAllSlashes  [line 227]

  static array &addAllSlashes( array &$array  )

Applies addslaslashes PHP function to all the elements of an array.

Parameters:
array   &$array: 

API Tags:
Access:  public


[ Top ]
static method arrayToXML  [line 69]

  static string arrayToXML( array $array, [int $level = 0], [string $version = '1.0'], [string $encoding = 'utf-8']  )

Exports a generic array in a well formed XML string.

Parameters:
array   $array: 
int   $level:  Level of iteration, determines the depth of the array currently processed
string   $version: 
string   $encoding: 

API Tags:
Access:  public


[ Top ]
static method checkEmail  [line 125]

  static boolean checkEmail( string $email  )

Checks if an email address is valid.

Parameters:
string   $email: 

API Tags:
Access:  public


[ Top ]
static method checkUrl  [line 181]

  static string checkUrl( string $url  )

Checks if an URL is valid and returns it in the correct format.

Parameters:
string   $url: 

API Tags:
Access:  public


[ Top ]
static method getDateTimestamp  [line 209]

  static timestamp getDateTimestamp( [string $year = null], [string $month = null], [string $day = null]  )

Checks a date and returns is timestamp.

Parameters:
string   $year: 
string   $month: 
string   $day: 

API Tags:
Access:  public


[ Top ]
static method stripAllSlashes  [line 250]

  static array &stripAllSlashes( array &$array  )

Applies stripslaslashes PHP function to all the elements of an array.

Parameters:
array   &$array: 

API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 44]

  ZNF_Util_Utility __construct( )

Private constructor to avoid ZNF_Util_Utility object creation.


API Tags:
Access:  private


[ Top ]
Destructor __destruct  [line 270]

  void __destruct( )

Destroys the ZNF_Util_Utility object.</>


API Tags:
Access:  public


[ Top ]
__clone  [line 53]

  void __clone( )

Private clonator to avoid ZNF_Util_Utility object clonation.


API Tags:
Access:  private


[ Top ]

Documentation generated on Wed, 14 Nov 2007 23:47:42 +0100 by phpDocumentor 1.4.0