API - XOOPS 2.5.11 Beta 2
By monxoops.fr
TableLoad Class Reference

Static Public Member Functions

static loadTableFromYamlFile ($table, $yamlFile)
 
static saveTableToYamlFile ($table, $yamlFile, $criteria=null, $skipColumns=array())
 

Member Function Documentation

◆ loadTableFromYamlFile()

static loadTableFromYamlFile (   $table,
  $yamlFile 
)
static

loadTableFromYamlFile

Parameters
string$tablename of table to load without prefix
string$yamlFilename of file containing data dump in YAML format
Returns
int number of rows inserted

◆ saveTableToYamlFile()

static saveTableToYamlFile (   $table,
  $yamlFile,
  $criteria = null,
  $skipColumns = array() 
)
static

Save table data to a YAML file

Parameters
string$tablename of table to load without prefix
string$yamlFilename of file containing data dump in YAML format
\CriteriaElement$criteriaoptional criteria
string[]$skipColumnsdo not include columns in this list
Returns
bool true on success, false on error

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