symfony API

sfToolkit Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

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

  • & () Browse code

  • arrayDeepMerge () Browse code

  • (void) clearDirectory () Browse code

    Clear all files in a given directory.

  • (void) clearGlob () Browse code

    Clear all files and directories corresponding to a glob pattern.

  • (string) extractClassName () Browse code

    Extract the class or interface name from filename.

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

  • getArrayValueForPath () Browse code

  • getPhpCli () Browse code

  • getTmpDir () Browse code

    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 () Browse code

    Determine if a lock file is present.

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

  • isArrayValuesEmpty () Browse code

  • (bool) isPathAbsolute () Browse code

    Determine if a filesystem path is absolute.

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

  • (bool) isUTF8 () Browse code

    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 () Browse code

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

  • pregtr (, ) Browse code

    Returns subject replaced with regular expression matchs

  • (string) replaceConstants () Browse code

    Replaces constant identifiers in a scalar value.

    returns the value with substitutions made

  • stringToArray () Browse code

  • stripComments () Browse code

  • stripslashesDeep () Browse code