메소드 | 설명 | |
---|---|---|
createArchiveTable ( $table ) | ||
execute ( string $sql, array $params = [], string $message = null ) | Executes a SQL statement. | |
exportData ( $migrationName, $tables ) | ||
getCsvFiles ( ) : null | array | ||
getInsertId ( $table ) | ||
getInsertReferentialObjectValue ( $object_type, $pointer ) | ||
getMigrationPath ( ) | ||
initialiseData ( $migrations_path, $update_pk = null, $data_directory = null ) | Initialise tables with default data Filenames must to be in the format "nn_tablename.csv", where nn is the processing order FIXME: This needs to be refactored to use SQL rather than relying on models. | |
setMigrationPath ( $path = null ) | ||
setTestData ( $val ) | ||
setVerbose ( $verbose = true ) |
메소드 | 설명 | |
---|---|---|
consolidate ( array $consolidated_migrations ) : boolean | ||
createElementType ( string $event_type, string $name, array $params = [] ) : integer | ||
createOETable ( string $name, array $columns, boolean $versioned = false ) | Create a table with the standard OE columns and options. | |
deleteOEFromMultikeyTable ( string $tableName, array $fieldsValsArray ) | ||
dropOETable ( $name, boolean $versioned = false ) | Convenience function to drop OE tables from db - versioned defaults to false to mirroe createOETable. | |
getIdOfElementTypeByClassName ( $className ) : mixed | ||
insertOEElementType ( array $element_types, integer $event_type_id ) : array | ||
insertOEEventType ( $eventTypeName, $eventTypeClass, $eventTypeGroup ) : mixed | ||
versionExistingTable ( string $base_name ) | Create a version table for the specified existing OE table. |
메소드 | 설명 | |
---|---|---|
compare_file_basenames ( $a, $b ) | ||
exportTable ( string $migrationName, CDbTableSchema $table ) : integer | ||
migrationEcho ( $msg ) |
protected consolidate ( array $consolidated_migrations ) : boolean | ||
$consolidated_migrations | array | |
리턴 | boolean |
protected createElementType ( string $event_type, string $name, array $params = [] ) : integer | ||
$event_type | string | Class name of event type |
$name | string | Name of event |
$params | array | Supported values and defaults are: class_name, display_order (1), default (false), required (false), parent_name (null) |
리턴 | integer | Element type ID |
protected deleteOEFromMultikeyTable ( string $tableName, array $fieldsValsArray ) | ||
$tableName | string | |
$fieldsValsArray | array | example of fieldsValsArray $fieldsValsArray should look like array( array('column_name'=>'value', 'column_name'=>'val'), ) |
protected dropOETable ( $name, boolean $versioned = false ) | ||
$name | ||
$versioned | boolean |
protected getIdOfElementTypeByClassName ( $className ) : mixed | ||
$className | - string | |
리턴 | mixed | - the value of the id. False is returned if there is no value. |
public getInsertReferentialObjectValue ( $object_type, $pointer ) |
public initialiseData ( $migrations_path, $update_pk = null, $data_directory = null ) |
protected insertOEEventType ( $eventTypeName, $eventTypeClass, $eventTypeGroup ) : mixed | ||
$eventTypeName | - string | |
$eventTypeClass | - string | |
$eventTypeGroup | - string | |
리턴 | mixed | - the id value of the event_type. False is returned if there is no value. |
protected versionExistingTable ( string $base_name ) | ||
$base_name | string | Base table name |