[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/util/ -> sfToolkit.class.php (sommaire)

(pas de description)

Poids: 517 lignes (13 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfToolkit:: (17 méthodes):
  extractClassName()
  clearDirectory()
  clearGlob()
  isPathAbsolute()
  hasLockFile()
  stripComments()
  stripslashesDeep()
  arrayDeepMerge()
  stringToArray()
  literalize()
  replaceConstants()
  pregtr()
  isArrayValuesEmpty()
  isUTF8()
  getArrayValueForPath()
  getPhpCli()
  getTmpDir()


Classe: sfToolkit  - X-Ref

sfToolkit provides basic utility methods.

extractClassName($filename)   X-Ref
Extract the class or interface name from filename.

param: string A filename.
return: string A class or interface name, if one can be extracted, otherwise null.

clearDirectory($directory)   X-Ref
Clear all files in a given directory.

param: string An absolute filesystem path to a directory.
return: void

clearGlob($pattern)   X-Ref
Clear all files and directories corresponding to a glob pattern.

param: string An absolute filesystem pattern.
return: void

isPathAbsolute($path)   X-Ref
Determine if a filesystem path is absolute.

param: path A filesystem path.
return: bool true, if the path is absolute, otherwise false.

hasLockFile($lockFile, $maxLockFileLifeTime = 0)   X-Ref
Determine if a lock file is present.

param: integer A max amount of life time for the lock file.
return: bool true, if the lock file is present, otherwise false.

stripComments($source)   X-Ref
Pas de description

stripslashesDeep($value)   X-Ref
Pas de description

arrayDeepMerge()   X-Ref
Pas de description

stringToArray($string)   X-Ref
Pas de description

literalize($value, $quoted = false)   X-Ref
Finds the type of the passed value, returns the value as the new type.

param: string
return: mixed

replaceConstants($value)   X-Ref
Replaces constant identifiers in a scalar value.

param: string the value to perform the replacement on
return: string the value with substitutions made

pregtr($search, $replacePairs)   X-Ref
Returns subject replaced with regular expression matchs

param: mixed subject to search
param: array array of search => replace pairs

isArrayValuesEmpty($array)   X-Ref
Pas de description

isUTF8($string)   X-Ref
Check if a string is an utf8 using a W3C regular expression
http://fr3.php.net/manual/en/function.mb-detect-encoding.php#50087

param: string
return: bool true if $string is valid UTF-8 and false otherwise.

getArrayValueForPath($values, $name, $default = null)   X-Ref
Pas de description

getPhpCli()   X-Ref
Pas de description

getTmpDir()   X-Ref
From PEAR System.php

LICENSE: This source file is subject to version 3.0 of the PHP license
that is available through the world-wide-web at the following URI:
http://www.php.net/license/3_0.txt.  If you did not receive a copy of
the PHP License and are unable to obtain it through the web, please
send a note to license@php.net so we can mail you a copy immediately.

author: Tomas V.V.Cox <cox@idecnet.com>



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7