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 | $sFileName | table_name or optionally fullfilename.yml |
string | $sFileDir | optional 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 | $sFileName | fullfilename.yml |
string | $sFileDir | optional path to directory (like '/dirname'), defaults to null |
- Returns
- array assoc
The documentation for this class was generated from the following file:
- cms-full/base/lib/classes/InstallUtil.php