Add class_exists
This commit is contained in:
parent
3ecb6afea2
commit
4b55af24f7
|
|
@ -32,7 +32,8 @@
|
|||
* @method string copy_files
|
||||
* @method string write_config
|
||||
*/
|
||||
class scripts {
|
||||
if (!class_exists('scripts')) {
|
||||
class scripts {
|
||||
|
||||
public $db;
|
||||
|
||||
|
|
@ -271,9 +272,8 @@ class scripts {
|
|||
fclose($fout);
|
||||
}
|
||||
} //end config_lua
|
||||
|
||||
} //end scripts class
|
||||
|
||||
} //end scripts class
|
||||
}
|
||||
/*
|
||||
//example use
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
sreis
|
||||
*/
|
||||
|
||||
if (!class_exists('domains')) {
|
||||
class domains {
|
||||
|
||||
//define variables
|
||||
|
|
@ -352,5 +353,6 @@
|
|||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -32,7 +32,8 @@
|
|||
* @method boolean delete
|
||||
* @method boolean defaults
|
||||
*/
|
||||
class groups {
|
||||
if (!class_exists('groups')) {
|
||||
class groups {
|
||||
|
||||
public $db;
|
||||
|
||||
|
|
@ -180,10 +181,8 @@ class groups {
|
|||
$this->db->commit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} //end scripts class
|
||||
|
||||
} //end scripts class
|
||||
}
|
||||
/*
|
||||
//example use
|
||||
$group = new groups;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -26,6 +26,7 @@
|
|||
include "root.php";
|
||||
|
||||
//define the schema class
|
||||
if (!class_exists('schema')) {
|
||||
class schema {
|
||||
|
||||
//define variables
|
||||
|
|
@ -873,8 +874,8 @@ include "root.php";
|
|||
//else if ($output == "return") {
|
||||
return $response;
|
||||
//}
|
||||
|
||||
} //end function
|
||||
}
|
||||
}
|
||||
|
||||
//example use
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
*
|
||||
* @method settings will add missing switch directories to default settings
|
||||
*/
|
||||
class switch_settings {
|
||||
if (!class_exists('switch_settings')) {
|
||||
class switch_settings {
|
||||
|
||||
public $db;
|
||||
public $event_socket_ip_address;
|
||||
|
|
@ -246,6 +247,7 @@ class switch_settings {
|
|||
//unset the array variable
|
||||
unset($array);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -31,7 +31,8 @@
|
|||
* @method string add
|
||||
* @method boolean delete
|
||||
*/
|
||||
class users {
|
||||
if (!class_exists('users')) {
|
||||
class users {
|
||||
|
||||
/**
|
||||
* Called when the object is created
|
||||
|
|
@ -66,8 +67,8 @@ class users {
|
|||
return false;
|
||||
}
|
||||
|
||||
} //end scripts class
|
||||
|
||||
} //end scripts class
|
||||
}
|
||||
/*
|
||||
//example use
|
||||
$user = new users;
|
||||
|
|
|
|||
Loading…
Reference in New Issue