Co-authored-by: Tim Fry <[email protected]>
@@ -23,16 +23,6 @@ class authentication {
}
- /**
- * Called when there are no references to a particular object
- * unset the variables used in the class
- */
- public function __destruct() {
- foreach ($this as $key => $value) {
- unset($this->$key);
- }
-
/**
* validate uses authentication plugins to check if a user is authorized to login
* @return array [plugin] => last plugin used to authenticate the user [authorized] => true or false
@@ -61,16 +61,6 @@ if (!class_exists('dashboard')) {
$this->location = 'dashboard.php';
- * called when there are no references to a particular object
* delete rows from the database
*/
@@ -53,16 +53,6 @@ if (!class_exists('databases')) {
* delete records
@@ -60,16 +60,6 @@ if (!class_exists('default_settings')) {
$this->location = 'default_settings.php';
@@ -63,16 +63,6 @@ if (!class_exists('domain_settings')) {
@@ -54,16 +54,6 @@ class events {
$this->required['headers'][] = "user_uuid";
* This function will load all available plugins into the memory
* Rules:
@@ -24,16 +24,6 @@ if (!class_exists('install')) {
$this->app_uuid = '75507e6e-891e-11e5-af63-feff819cdc9f';
* <p>Used to create the config.conf file.</p>
* <p>BSD /usr/local/etc/fusionpbx</p>
@@ -59,16 +59,6 @@ if (!class_exists('user_logs')) {
$this->location = 'user_logs.php';
* add user_logs
@@ -62,16 +62,6 @@ if (!class_exists('user_settings')) {
@@ -59,16 +59,6 @@ if (!class_exists('users')) {
$this->location = 'users.php';
@@ -17,16 +17,6 @@ class cache {
//place holder
* Add a specific item in the cache
* @var string $key the cache id
@@ -43,16 +43,6 @@ class captcha {
* Create the captcha image
* @var string $code
@@ -30,16 +30,6 @@ class config {
* Determine whether the config.php exists
* @var string $db_type - type of database
@@ -383,16 +383,6 @@
* <p>Connect to the database.</p>
* <p>Database driver must be set before calling connect.</p>
@@ -61,16 +61,6 @@ if (!class_exists('domains')) {
$this->location = 'domains.php';
@@ -66,16 +66,6 @@ if (!class_exists('email')) {
$this->read_confirmation = false;
* parse raw emails
@@ -20,16 +20,6 @@ class file {
* Glob search for a list of files
* @var string $dir this is the directory to scan
@@ -55,16 +55,6 @@ if (!class_exists('groups')) {
$this->app_uuid = '2caf27b0-540a-43d5-bb9b-c9871a1e4f84';
@@ -59,16 +59,6 @@ if (!class_exists('menu')) {
$this->location = 'menus.php';
@@ -19,16 +19,6 @@ if (!class_exists('switch_settings')) {
* settings Set switch directories in default settings
@@ -65,12 +65,6 @@
public function assign($key, $value) {
if ($this->engine === 'smarty') {
$this->object->assign($key, $value);
@@ -50,16 +50,6 @@ class text {
- if (is_array($this)) foreach ($this as $key => $value) {
* Get a specific item from the cache
* @var string $language_code examples: en-us, es-cl, fr-fr, pt-pt
@@ -43,16 +43,6 @@ class token {
* Create the token
* @var string $key
@@ -62,16 +62,6 @@ class vcard {
return true;
/*
build() method checks all the values, builds appropriate defaults for
missing values, generates the vcard data string.