symfony API

sfData Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

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

Inheritence

sfPropelData  <  sfData

Method Summary

  • doLoadData($files)
    Manages reading all of the fixture data files and
  • doLoadDataFromFile($file)
    Loads data for the database from a YAML file
  • boolean getDeleteCurrentData()
    Gets the current value of the flag that indicates whether
  • array getFiles($element)
    Gets a list of one or more *.yml files and returns the list in an array.
  • loadDataFromArray($data)
    Manages the insertion of data into the data source
  • setDeleteCurrentData($boolean)
    Sets a flag to indicate if the current data in the database

Method Details

  • doLoadData ($files) Browse code

    $files The path names of the YAML data files

    Manages reading all of the fixture data files and

    loading them into the data source

  • doLoadDataFromFile ($file) Browse code

    $file The path to the YAML file.

    Loads data for the database from a YAML file

  • (boolean) getDeleteCurrentData () Browse code

    Gets the current value of the flag that indicates whether

    current data is to be deleted or not.

  • (array) getFiles ($element) Browse code

    $element A directory or file name or an array of directories and/or file names If null, then defaults to 'sf_data_dir'/fixtures

    Gets a list of one or more *.yml files and returns the list in an array.


    The returned array of files is sorted by alphabetical order.

    returns A list of *.yml files

    throws sfInitializationException If the directory or file does not exist.

  • loadDataFromArray ($data) Browse code

    $data The data to be inserted into the data source

    Manages the insertion of data into the data source

  • setDeleteCurrentData ($boolean) Browse code

    $boolean The flag value

    Sets a flag to indicate if the current data in the database

    should be deleted before new data is loaded.