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

@@ -145,7 +145,7 @@ class htaccess_dir
### Create the record/verify fields
$type = "add";
$this->method["$type"] = split(",", $this->method["$type"]);
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database;
$dir_id = $db->add($VAR, $this, $type);
@@ -304,7 +304,7 @@ class htaccess_dir
### Update the db record
$type = "update";
$this->method["$type"] = split(",", $this->method["$type"]);
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database;
$dir = $db->update($VAR, $this, $type);
@@ -330,9 +330,9 @@ class htaccess_dir
{
### Get the array
if(isset($VAR["delete_id"]))
$id = split(',', $VAR["delete_id"]);
$id = explode(',', $VAR["delete_id"]);
elseif (isset($VAR["id"]))
$id = split(',', $VAR["id"]);
$id = explode(',', $VAR["id"]);
### Loop:
for($i=0; $i<count($id); $i++)
@@ -395,7 +395,7 @@ class htaccess_dir
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);
}
@@ -406,7 +406,7 @@ class htaccess_dir
function search($VAR)
{
$type = "search";
$this->method["$type"] = split(",", $this->method["$type"]);
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database;
$db->search($VAR, $this, $type);
}
@@ -418,7 +418,7 @@ class htaccess_dir
function search_show($VAR)
{
$type = "search";
$this->method["$type"] = split(",", $this->method["$type"]);
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database;
$db->search_show($VAR, $this, $type);
}