public function __construct(&$assoc_args, $fields = null, $prefix = false)
{
$format_args = array('format' => 'table', 'fields' => $fields, 'field' => null);
foreach (array('format', 'fields', 'field') as $key) {
if (isset($assoc_args[$key])) {
$format_args[$key] = $assoc_args[$key];
unset($assoc_args[$key]);
}
}
if (!is_array($format_args['fields'])) {
$format_args['fields'] = explode(',', $format_args['fields']);
}
$format_args['fields'] = array_map('trim', $format_args['fields']);
$this->args = $format_args;
$this->prefix = $prefix;
}