Add class_exists

This commit is contained in:
markjcrane 2016-04-14 23:23:14 -06:00
parent fdc0435ab3
commit 69d36b806d
7 changed files with 620 additions and 613 deletions

View File

@ -32,6 +32,7 @@
* @method string copy_files * @method string copy_files
* @method string write_config * @method string write_config
*/ */
if (!class_exists('scripts')) {
class scripts { class scripts {
public $db; public $db;
@ -271,9 +272,8 @@ class scripts {
fclose($fout); fclose($fout);
} }
} //end config_lua } //end config_lua
} //end scripts class } //end scripts class
}
/* /*
//example use //example use

View File

@ -25,6 +25,7 @@
sreis sreis
*/ */
if (!class_exists('domains')) {
class domains { class domains {
//define variables //define variables
@ -352,5 +353,6 @@
} }
} }
}
?> ?>

View File

@ -32,6 +32,7 @@
* @method boolean delete * @method boolean delete
* @method boolean defaults * @method boolean defaults
*/ */
if (!class_exists('groups')) {
class groups { class groups {
public $db; public $db;
@ -180,10 +181,8 @@ class groups {
$this->db->commit(); $this->db->commit();
} }
} }
} //end scripts class } //end scripts class
}
/* /*
//example use //example use
$group = new groups; $group = new groups;

View File

@ -25,6 +25,7 @@
*/ */
//define the menu class //define the menu class
if (!class_exists('menu')) {
class menu { class menu {
//define the variables //define the variables
public $menu_uuid; public $menu_uuid;
@ -580,5 +581,6 @@
} }
} //end function } //end function
} }
}
?> ?>

View File

@ -26,6 +26,7 @@
include "root.php"; include "root.php";
//define the schema class //define the schema class
if (!class_exists('schema')) {
class schema { class schema {
//define variables //define variables
@ -873,9 +874,9 @@ include "root.php";
//else if ($output == "return") { //else if ($output == "return") {
return $response; return $response;
//} //}
} //end function } //end function
} }
}
//example use //example use
//require_once "resources/classes/schema.php"; //require_once "resources/classes/schema.php";

View File

@ -5,6 +5,7 @@
* *
* @method settings will add missing switch directories to default settings * @method settings will add missing switch directories to default settings
*/ */
if (!class_exists('switch_settings')) {
class switch_settings { class switch_settings {
public $db; public $db;
@ -247,5 +248,6 @@ class switch_settings {
unset($array); unset($array);
} }
} }
}
?> ?>

View File

@ -31,6 +31,7 @@
* @method string add * @method string add
* @method boolean delete * @method boolean delete
*/ */
if (!class_exists('users')) {
class users { class users {
/** /**
@ -67,7 +68,7 @@ class users {
} }
} //end scripts class } //end scripts class
}
/* /*
//example use //example use
$user = new users; $user = new users;