Out with split(), in with explode()

This commit is contained in:
Tony Landis
2009-03-27 23:20:19 -06:00
parent ff9e25abcf
commit 87a8e0f92d
101 changed files with 639 additions and 639 deletions

View File

@@ -92,7 +92,7 @@ class newsletter_subscriber
function add($VAR)
{
$type = "add";
$this->method["$type"] = split(",", $this->method["$type"]);
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database;
$id = $db->add($VAR, $this, $type);
@@ -112,7 +112,7 @@ class newsletter_subscriber
function view($VAR)
{
$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);
@@ -134,7 +134,7 @@ class newsletter_subscriber
function update($VAR)
{
$type = "update";
$this->method["$type"] = split(",", $this->method["$type"]);
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database;
if($db->update($VAR, $this, $type))
{
@@ -161,7 +161,7 @@ class newsletter_subscriber
function search_form($VAR)
{
$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);
}
@@ -172,7 +172,7 @@ class newsletter_subscriber
function search($VAR)
{
$type = "search";
$this->method["$type"] = split(",", $this->method["$type"]);
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB();
@@ -456,7 +456,7 @@ class newsletter_subscriber
function search_show($VAR)
{
$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];
@@ -653,7 +653,7 @@ class newsletter_subscriber
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);
}
@@ -661,7 +661,7 @@ class newsletter_subscriber
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);
}
@@ -669,7 +669,7 @@ class newsletter_subscriber
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);
}
@@ -677,7 +677,7 @@ class newsletter_subscriber
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);
}
@@ -685,7 +685,7 @@ class newsletter_subscriber
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);
}