function DevObject() { $count = func_num_args(); $tables = array(); $table = null; for ($i = 0; $i < $count; $i++) { $table = func_get_arg($i); if (is_array($table)) { $tables = array_merge($tables, $table); } else { $tables[] = $table; } } parent::DevModel($tables); }