symfony API

sfToolkit Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfToolkit provides basic utility methods.

Method Summary

Method Details

  • & ()

  • arrayDeepMerge ()

  • (void) clearDirectory ()

    Clear all files in a given directory.

  • (void) clearGlob ()

    Clear all files and directories corresponding to a glob pattern.

  • (string) extractClassName ()

    Extract the class or interface name from filename.

    returns A class or interface name, if one can be extracted, otherwise null.

  • getArrayValueForPath ()

  • getPhpCli ()

  • getTmpDir ()

    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.

  • (bool) hasLockFile ()

    Determine if a lock file is present.

    returns true, if the lock file is present, otherwise false.

  • isArrayValuesEmpty ()

  • (bool) isPathAbsolute ()

    Determine if a filesystem path is absolute.

    returns true, if the path is absolute, otherwise false.

  • (bool) isUTF8 ()

    Checks if a string is an utf8.


    Yi Stone Li
    Copyright (c) 2007 Yahoo! Inc. All rights reserved.
    Licensed under the BSD open source license

    returns true if $string is valid UTF-8 and false otherwise.

  • (mixed) literalize ()

    Finds the type of the passed value, returns the value as the new type.

  • pregtr (, )

    Returns subject replaced with regular expression matchs

  • (string) replaceConstants ()

    Replaces constant identifiers in a scalar value.

    returns the value with substitutions made

  • stringToArray ()

  • stripComments ()

  • stripslashesDeep ()