[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/addon/ -> sfData.class.php (sommaire)

This class defines the interface for interacting with data, as well as default implementations.

Author: Fabien Potencier <fabien.potencier@symfony-project.com>
Version: SVN: $Id: sfData.class.php 3382 2007-02-01 07:34:56Z fabien $
Poids: 120 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 5 fonctions

  setDeleteCurrentData()
  getDeleteCurrentData()
  doLoadDataFromFile()
  doLoadData()
  getFiles()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

setDeleteCurrentData($boolean)   X-Ref
Sets a flag to indicate if the current data in the database
should be deleted before new data is loaded.

param: boolean The flag value

getDeleteCurrentData()   X-Ref
Gets the current value of the flag that indicates whether
current data is to be deleted or not.

returns: boolean

doLoadDataFromFile($fixture_file)   X-Ref
Loads data for the database from a YAML file

param: string The path to the YAML file.

doLoadData($fixture_files)   X-Ref
Manages reading all of the fixture data files and
loading them into the data source

param: array The path names of the YAML data files

getFiles($directory_or_file = null)   X-Ref
Gets a list of one or more *.yml files and returns the list in an array

returns: array A list of *.yml files.
param: string A directory or file name; if null, then defaults to 'sf_data_dir'/fixtures



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