var $_action = NULL;
var $_output = FALSE;
var $_joblog = FALSE;
+ var $_semicolon = FALSE;
var $_config;
// optional arguments
elseif ($arg == '-j' || $arg == '--joblog') {
$this->_joblog = TRUE;
}
+ elseif ($arg == '-sem' || $arg == '--semicolon') {
+ $this->_semicolon = TRUE;
+ }
else {
foreach ($this->_additional_arguments as $short => $long) {
if ($arg == '-' . $short || $arg == '--' . $long) {
parent::initialize();
}
+ /**
+ * Run the script.
+ */
public function run() {
+ if ($this->_semicolon) {
+ $this->separator = ';';
+ }
+
$out = fopen("php://output", 'w');
fputcsv($out, $this->columns, $this->separator, '"');