symfony API

sfSimpleAutoload Class

« Back to API menu

action

addon

autoload

cache

command

config

controller

creole

database

debug

exception

filter

form

generator

helper

i18n

log

plugin

propel

request

response

routing

storage

task

test

user

util

validator

view

widget

You are currently browsing the symfony documentation for the 1.1 version. Switch to:

sfSimpleAutoload class.

Method Summary

  • __construct($cacheFile = null)
  • removeCache()
    Removes the cache.
  • addDirectory($dir, $ext = '.php')
    Adds a directory to the autoloading system.
  • getInstance($cacheFile = null)
    Retrieves the singleton instance of this class.
  • saveCache()
    Saves the cache.
  • loadCache()
    Loads the cache.
  • addFile($file, (Boolean) $register = true)
    Adds a file to the autoloading system.
  • setClassPath($class, $path)
  • unregister()
    Unregister sfSimpleAutoload from spl autoloader.
  • register()
    Register sfSimpleAutoload in spl autoloader.
  • addFiles($files, (Boolean) $register = true)
    Adds files to the autoloading system.
  • boolean autoload($class)
    Handles autoloading of classes.
  • reload()
    Reloads cache.

Method Details

  • __construct ($cacheFile = null)

  • removeCache ()

    Removes the cache.

  • addDirectory ($dir, $ext = '.php')

    $dir The directory to look for classes
    $ext The extension to look for

    Adds a directory to the autoloading system.

  • getInstance ($cacheFile = null)

    $cacheFile The file path to save the cache

    Retrieves the singleton instance of this class.

    returns A sfSimpleAutoload implementation instance.

  • saveCache ()

    Saves the cache.

  • loadCache ()

    Loads the cache.

  • addFile ($file, (Boolean) $register = true)

    $file A file path
    $register Whether to register those files as single entities (used when reloading)

    Adds a file to the autoloading system.

  • setClassPath ($class, $path)

  • unregister ()

    Unregister sfSimpleAutoload from spl autoloader.

  • register ()

    Register sfSimpleAutoload in spl autoloader.

  • addFiles ($files, (Boolean) $register = true)

    $files An array of files
    $register Whether to register those files as single entities (used when reloading)

    Adds files to the autoloading system.

  • (boolean) autoload ($class)

    $class A class name.

    Handles autoloading of classes.

    returns Returns true if the class has been loaded

  • reload ()

    Reloads cache.