rapila
Static Public Member Functions | List of all members
InstallUtil Class Reference

Static Public Member Functions

static loadYamlFile ($sFileName, $sFileDir=null)
 
static loadToDbFromYamlFile ($sFileName, $sFileDir=null)
 

Detailed Description

classname: InstallUtil

Member Function Documentation

static InstallUtil::loadToDbFromYamlFile (   $sFileName,
  $sFileDir = null 
)
static

loadToDbFromYamlFile() description:

  • reading yaml config file with params 'modelName', 'inserts', 'insert_pattern'
  • and processing the data by passing it to a propel modelName::insertRow() method passing a array assoc of fieldnames and values
  • works only already installed db, handled by propel
  • see details in the data/install/'table_name.insert.yml' files and install_notes.txt
    Parameters
    string$sFileNametable_name or optionally fullfilename.yml
    string$sFileDiroptional path to directory (like '/dirname'), defaults to MAIN_DIR/DIRNAME_DATA/install
    Returns
    void
static InstallUtil::loadYamlFile (   $sFileName,
  $sFileDir = null 
)
static

loadYamlFile() description:

  • reads yaml file into an array assoc (for further details
    See also
    Spyc class)
    Parameters
    string$sFileNamefullfilename.yml
    string$sFileDiroptional path to directory (like '/dirname'), defaults to null
    Returns
    array assoc

The documentation for this class was generated from the following file: