Add class_exists

This commit is contained in:
markjcrane 2016-04-14 23:23:14 -06:00
parent 3ecb6afea2
commit 4b55af24f7
7 changed files with 620 additions and 613 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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