\System\Shell\TaskDatabaseExportTask

Export database.

Summary

Methods
Properties
Constants
getOptionParser()
main()
No public properties found
No constants found
_classFileHeader()
_arrayToString()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getOptionParser()

getOptionParser() : \Cake\Console\ConsoleOptionParser

Gets the option parser instance and configures it.

Returns

\Cake\Console\ConsoleOptionParser

main()

main() : boolean

Export entire database to PHP fixtures.

By default, all generated PHP files will be placed in /tmp/fixture/ directory, this can be changed using the --destination argument.

Returns

boolean

_classFileHeader()

_classFileHeader(string $className) : string

Returns correct class file header.

Parameters

string $className

The name of the class withing the file

Returns

string

_arrayToString()

_arrayToString(array $var) : string

Converts an array to code-string representation.

Parameters

array $var

The array to convert

Returns

string