Run scaffolding or model generation based an an existing database tables.
Based on https://github.com/mp-php/fuel-myapp/blob/master/tasks/scafdb.php
author | Mamoru Otsuka http://madroom-project.blogspot.jp/ |
---|---|
copyright | 2012 Mamoru Otsuka |
license | WTFPL http://sam.zoy.org/wtfpl/COPYING |
__construct()
help()
Usage (from command line):
php oil refine fromdb:help
migration($tables)
Usage (from command line):
php oil refine fromdb:migration <table_name,table_name...>
model($tables)
Usage (from command line):
php oil refine fromdb:model <table_name,table_name...>
run()
Usage (from command line):
php oil refine fromdb
scaffold($tables)
Usage (from command line):
php oil refine fromdb:scaffold <table_name,table_name...>
arguments(string $table, $type) : array
string
name of the database table we need to create the list for
array
fetch_tables(string $type) : array
string
type of action being called, used to display a customized message
array