XOOPS
2.6.0
|
Static Public Member Functions | |
static | loadTableFromArray ($table, $data) |
static | loadTableFromYamlFile ($table, $yamlFile) |
static | rowCount ($table, $criteria=null) |
static | truncateTable ($table) |
Definition at line 29 of file TableLoad.php.
|
static |
loadTableFromArray
string | $table | name of table to load without prefix |
array | $data | array of rows to insert Each element of the outer array represents a single table row. Each row is an associative array in 'column' => 'value' format. |
Definition at line 42 of file TableLoad.php.
References $count, and Xoops\getInstance().
|
static |
loadTableFromYamlFile
string | $table | name of table to load without prefix |
string | $yamlFile | name of file containing data dump in YAML format |
Definition at line 62 of file TableLoad.php.
References $count, and Xoops\Core\Yaml\read().
|
static |
rowCount - get count of rows in a table
string | $table | name of table to count |
CriteriaElement | $criteria | optional criteria |
Definition at line 98 of file TableLoad.php.
References $count, $criteria, $result, and Xoops\getInstance().
|
static |
truncateTable - empty a database table
string | $table | name of table to truncate |
Definition at line 81 of file TableLoad.php.
References $platform, $sql, and Xoops\getInstance().