'h' => 'header',
));
- #if($format = out::client_type()) Db::pset('format',$format);
+ #if($format = out::client_type()) self::pset('format',$format);
# Param - Extract dbname from table
- if (preg_match('/^(\w+)\.(.*?)$/',Db::p('table'),$m)) {
- Db::pset('db',$m[1]);
- Db::pset('table',$m[2]);
+ if (preg_match('/^(\w+)\.(.*?)$/',self::p('table'),$m)) {
+ self::pset('db',$m[1]);
+ self::pset('table',$m[2]);
}
+ # Select param
+ if (Db::p('table') and Db::p('select')) {
+ Db::pset('table','SELECT '.(Db::p('select')).' FROM '.Db::p('table'));
+ Db::pset('select','');
+ }
+
}
} # < Class