Out with split(), in with explode()
This commit is contained in:
@@ -534,7 +534,7 @@ class charge
|
||||
}
|
||||
|
||||
$type = "add";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->add($VAR, $this, $type);
|
||||
}
|
||||
@@ -546,7 +546,7 @@ class charge
|
||||
{
|
||||
$this->charge_construct();
|
||||
$type = "view";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->view($VAR, $this, $type);
|
||||
}
|
||||
@@ -558,7 +558,7 @@ class charge
|
||||
{
|
||||
$this->charge_construct();
|
||||
$type = "update";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->update($VAR, $this, $type);
|
||||
}
|
||||
@@ -580,7 +580,7 @@ class charge
|
||||
{
|
||||
$this->charge_construct();
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->search_form($VAR, $this, $type);
|
||||
}
|
||||
@@ -593,7 +593,7 @@ class charge
|
||||
$this->charge_construct();
|
||||
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
|
||||
$db = &DB();
|
||||
|
||||
@@ -861,7 +861,7 @@ class charge
|
||||
$this->charge_construct();
|
||||
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
|
||||
# set the field list for this method:
|
||||
$arr = $this->method[$type];
|
||||
@@ -1054,7 +1054,7 @@ class charge
|
||||
if($VAR["format"] == "excel")
|
||||
{
|
||||
$type = "export_excel";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$export = new CORE_export;
|
||||
$export->search_excel($VAR, $this, $type);
|
||||
}
|
||||
@@ -1062,7 +1062,7 @@ class charge
|
||||
else if ($VAR["format"] == "pdf")
|
||||
{
|
||||
$type = "export_pdf";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$export = new CORE_export;
|
||||
$export->search_pdf($VAR, $this, $type);
|
||||
}
|
||||
@@ -1070,7 +1070,7 @@ class charge
|
||||
else if ($VAR["format"] == "xml")
|
||||
{
|
||||
$type = "export_xml";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$export = new CORE_export;
|
||||
$export->search_xml($VAR, $this, $type);
|
||||
}
|
||||
@@ -1078,7 +1078,7 @@ class charge
|
||||
else if ($VAR["format"] == "csv")
|
||||
{
|
||||
$type = "export_csv";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$export = new CORE_export;
|
||||
$export->search_csv($VAR, $this, $type);
|
||||
}
|
||||
@@ -1086,7 +1086,7 @@ class charge
|
||||
else if ($VAR["format"] == "tab")
|
||||
{
|
||||
$type = "export_tab";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$export = new CORE_export;
|
||||
$export->search_tab($VAR, $this, $type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user