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