#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); $helptext = << "; } if (is_array($arr)) { print "array({$inlf}"; $n = 0; foreach ($arr as $key => $row) { $n++; prettyDumpArray($row, $key, $subIndent); if ($n < count($arr)) { print "$insep$inlf"; } } // hack! print "{$inendspace})"; } else { print var_export($arr, true); } } function dumpTable($tableName) { $schema = Schema::get(); $def = $schema->getTableDef($tableName); prettyDumpArray($def, $tableName); echo "\n"; } if (count($args)) { foreach ($args as $tableName) { dumpTable($tableName); } } else { show_help($helptext); }