diff --git a/app/access_controls/resources/classes/access_controls.php b/app/access_controls/resources/classes/access_controls.php index bf94c6aae8..4a3f84cdd0 100644 --- a/app/access_controls/resources/classes/access_controls.php +++ b/app/access_controls/resources/classes/access_controls.php @@ -30,16 +30,6 @@ if (!class_exists('access_controls')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/basic_operator_panel/resources/classes/basic_operator_panel.php b/app/basic_operator_panel/resources/classes/basic_operator_panel.php index f1c32a8fb4..c8dcb0019e 100644 --- a/app/basic_operator_panel/resources/classes/basic_operator_panel.php +++ b/app/basic_operator_panel/resources/classes/basic_operator_panel.php @@ -44,16 +44,6 @@ if (!class_exists('basic_operator_panel')) { } } - /** - * 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); - } - } - /** * Get the call activity */ diff --git a/app/bridges/resources/classes/bridges.php b/app/bridges/resources/classes/bridges.php index f7797092e6..aff9e2a1dd 100644 --- a/app/bridges/resources/classes/bridges.php +++ b/app/bridges/resources/classes/bridges.php @@ -57,16 +57,6 @@ if (!class_exists('bridges')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/call_block/resources/classes/call_block.php b/app/call_block/resources/classes/call_block.php index 73c2d6de2b..e9fd281d7f 100644 --- a/app/call_block/resources/classes/call_block.php +++ b/app/call_block/resources/classes/call_block.php @@ -45,16 +45,6 @@ if (!class_exists('call_block')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/call_broadcast/resources/classes/call_broadcast.php b/app/call_broadcast/resources/classes/call_broadcast.php index d1058729dc..110eaa3111 100644 --- a/app/call_broadcast/resources/classes/call_broadcast.php +++ b/app/call_broadcast/resources/classes/call_broadcast.php @@ -33,16 +33,6 @@ if (!class_exists('call_broadcast')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/call_centers/resources/classes/call_center.php b/app/call_centers/resources/classes/call_center.php index 34b83ebd02..90cd8d5cf5 100644 --- a/app/call_centers/resources/classes/call_center.php +++ b/app/call_centers/resources/classes/call_center.php @@ -62,16 +62,6 @@ $this->app_uuid = '95788e50-9500-079e-2807-fd530b0ea370'; } - /** - * 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); - } - } - /** * Add a dialplan for call center * @var string $domain_uuid the multi-tenant id diff --git a/app/call_flows/resources/classes/call_flows.php b/app/call_flows/resources/classes/call_flows.php index 79856c9a1b..6c5fed9978 100644 --- a/app/call_flows/resources/classes/call_flows.php +++ b/app/call_flows/resources/classes/call_flows.php @@ -60,16 +60,6 @@ if (!class_exists('call_flows')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/call_recordings/resources/classes/call_recordings.php b/app/call_recordings/resources/classes/call_recordings.php index b84744e2f2..65373c6178 100644 --- a/app/call_recordings/resources/classes/call_recordings.php +++ b/app/call_recordings/resources/classes/call_recordings.php @@ -33,16 +33,6 @@ if (!class_exists('call_recordings')) { $this->location = 'call_recordings.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/conference_centers/resources/classes/conference_centers.php b/app/conference_centers/resources/classes/conference_centers.php index 4172a6497c..123a798baf 100644 --- a/app/conference_centers/resources/classes/conference_centers.php +++ b/app/conference_centers/resources/classes/conference_centers.php @@ -68,16 +68,6 @@ if (!class_exists('conference_centers')) { } - /** - * 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); - } - } - /** * count the conference rooms */ diff --git a/app/conference_controls/resources/classes/conference_controls.php b/app/conference_controls/resources/classes/conference_controls.php index 205a7df9ee..2d788dffad 100644 --- a/app/conference_controls/resources/classes/conference_controls.php +++ b/app/conference_controls/resources/classes/conference_controls.php @@ -60,16 +60,6 @@ if (!class_exists('conference_controls')) { $this->app_uuid = 'e1ad84a2-79e1-450c-a5b1-7507a043e048'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/conference_profiles/resources/classes/conference_profiles.php b/app/conference_profiles/resources/classes/conference_profiles.php index 184482b4e9..8ca0d283bc 100644 --- a/app/conference_profiles/resources/classes/conference_profiles.php +++ b/app/conference_profiles/resources/classes/conference_profiles.php @@ -60,16 +60,6 @@ if (!class_exists('conference_profiles')) { $this->app_uuid = 'c33e2c2a-847f-44c1-8c0d-310df5d65ba9'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/conferences/resources/classes/conferences.php b/app/conferences/resources/classes/conferences.php index 38ce49cd9e..56c5a2ba6c 100644 --- a/app/conferences/resources/classes/conferences.php +++ b/app/conferences/resources/classes/conferences.php @@ -56,17 +56,6 @@ if (!class_exists('conferences')) { $this->toggle_values = ['true','false']; } - - /** - * 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); - } - } - /** * delete records */ diff --git a/app/contacts/resources/classes/contacts.php b/app/contacts/resources/classes/contacts.php index 46c435917b..20dabbba74 100644 --- a/app/contacts/resources/classes/contacts.php +++ b/app/contacts/resources/classes/contacts.php @@ -69,16 +69,6 @@ if (!class_exists('contacts')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index f81447d749..306d275117 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -68,16 +68,6 @@ if (!class_exists('destinations')) { $this->uuid_prefix = 'destination_'; } - /** - * 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); - } - } - /** * Convert destination number to a regular expression * @var string $array destination_prefix, destination_trunk_prefix, destination_area_code, destination_number diff --git a/app/devices/resources/classes/device.php b/app/devices/resources/classes/device.php index 52de4981f6..fb9c20c326 100644 --- a/app/devices/resources/classes/device.php +++ b/app/devices/resources/classes/device.php @@ -53,12 +53,6 @@ } - public function __destruct() { - foreach ($this as $key => $value) { - unset($this->$key); - } - } - public function get_domain_uuid() { return $this->domain_uuid; } diff --git a/app/email_logs/resources/classes/email_logs.php b/app/email_logs/resources/classes/email_logs.php index 62189ba274..c9eed495ba 100644 --- a/app/email_logs/resources/classes/email_logs.php +++ b/app/email_logs/resources/classes/email_logs.php @@ -53,16 +53,6 @@ if (!class_exists('email_logs')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/email_queue/resources/classes/email_queue.php b/app/email_queue/resources/classes/email_queue.php index 281bfd9ee0..77bc6542ee 100644 --- a/app/email_queue/resources/classes/email_queue.php +++ b/app/email_queue/resources/classes/email_queue.php @@ -35,16 +35,6 @@ if (!class_exists('email_queue')) { $this->location = 'email_queue.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/email_templates/resources/classes/email_templates.php b/app/email_templates/resources/classes/email_templates.php index 578255f7c3..9d6094a19e 100644 --- a/app/email_templates/resources/classes/email_templates.php +++ b/app/email_templates/resources/classes/email_templates.php @@ -57,16 +57,6 @@ if (!class_exists('email_templates')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/event_guard/resources/classes/event_guard.php b/app/event_guard/resources/classes/event_guard.php index 2b4f2b4e36..786b53a997 100644 --- a/app/event_guard/resources/classes/event_guard.php +++ b/app/event_guard/resources/classes/event_guard.php @@ -59,16 +59,6 @@ if (!class_exists('event_guard')) { $this->location = 'event_guard_logs.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/extension_settings/resources/classes/extension_settings.php b/app/extension_settings/resources/classes/extension_settings.php index 20e65f76c1..afad7eb4c4 100644 --- a/app/extension_settings/resources/classes/extension_settings.php +++ b/app/extension_settings/resources/classes/extension_settings.php @@ -61,16 +61,6 @@ if (!class_exists('extension_settings')) { $this->location = 'extension_settings.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/extensions/resources/classes/extension.php b/app/extensions/resources/classes/extension.php index 0548af145d..87443bc135 100644 --- a/app/extensions/resources/classes/extension.php +++ b/app/extensions/resources/classes/extension.php @@ -103,16 +103,6 @@ if (!class_exists('extension')) { } - /** - * 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); - } - } - public function exists($domain_uuid, $extension) { $sql = "select count(*) from v_extensions "; $sql .= "where domain_uuid = :domain_uuid "; diff --git a/app/fax/resources/classes/fax.php b/app/fax/resources/classes/fax.php index 33dffef2a5..895a030f6f 100644 --- a/app/fax/resources/classes/fax.php +++ b/app/fax/resources/classes/fax.php @@ -65,16 +65,6 @@ if (!class_exists('fax')) { } - /** - * 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); - } - } - /** * Add a dialplan for call center * @var string $domain_uuid the multi-tenant id diff --git a/app/fax_queue/resources/classes/fax_queue.php b/app/fax_queue/resources/classes/fax_queue.php index d34b80e61b..d7c87c9377 100644 --- a/app/fax_queue/resources/classes/fax_queue.php +++ b/app/fax_queue/resources/classes/fax_queue.php @@ -59,16 +59,6 @@ if (!class_exists('fax_queue')) { $this->location = 'fax_queue.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/gateways/resources/classes/gateways.php b/app/gateways/resources/classes/gateways.php index 7ca2b94275..4a1b88f2b9 100644 --- a/app/gateways/resources/classes/gateways.php +++ b/app/gateways/resources/classes/gateways.php @@ -57,16 +57,6 @@ if (!class_exists('gateways')) { } - /** - * 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); - } - } - /** * start gateways */ diff --git a/app/ivr_menus/resources/classes/ivr_menu.php b/app/ivr_menus/resources/classes/ivr_menu.php index f9f33ce966..3a215adf89 100644 --- a/app/ivr_menus/resources/classes/ivr_menu.php +++ b/app/ivr_menus/resources/classes/ivr_menu.php @@ -58,16 +58,6 @@ if (!class_exists('ivr_menu')) { } - /** - * 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); - } - } - public function find() { $sql = "select * from v_ivr_menus "; $sql .= "where domain_uuid = :domain_uuid "; diff --git a/app/modules/resources/classes/modules.php b/app/modules/resources/classes/modules.php index 280846de14..1b716726b0 100644 --- a/app/modules/resources/classes/modules.php +++ b/app/modules/resources/classes/modules.php @@ -65,16 +65,6 @@ if (!class_exists('modules')) { } - /** - * 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); - } - } - //get the additional information about a specific module public function info($name) { $module_label = substr($name, 4); diff --git a/app/music_on_hold/resources/classes/switch_music_on_hold.php b/app/music_on_hold/resources/classes/switch_music_on_hold.php index 2a8c25d9a1..1cc16a7bc3 100644 --- a/app/music_on_hold/resources/classes/switch_music_on_hold.php +++ b/app/music_on_hold/resources/classes/switch_music_on_hold.php @@ -56,16 +56,6 @@ if (!class_exists('switch_music_on_hold')) { } - /** - * 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); - } - } - public function select($name, $selected, $options) { //add multi-lingual support $language = new text; diff --git a/app/number_translations/resources/classes/number_translations.php b/app/number_translations/resources/classes/number_translations.php index 53b2c21485..c1ff76bd8c 100644 --- a/app/number_translations/resources/classes/number_translations.php +++ b/app/number_translations/resources/classes/number_translations.php @@ -62,16 +62,6 @@ if (!class_exists('number_translations')) { } - /** - * 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); - } - } - /** * Check to see if the number translation already exists */ diff --git a/app/phrases/resources/classes/phrases.php b/app/phrases/resources/classes/phrases.php index 4ad96c540d..792d21544c 100644 --- a/app/phrases/resources/classes/phrases.php +++ b/app/phrases/resources/classes/phrases.php @@ -62,16 +62,6 @@ if (!class_exists('phrases')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/pin_numbers/resources/classes/pin_numbers.php b/app/pin_numbers/resources/classes/pin_numbers.php index d34d83ec80..c0be87493e 100644 --- a/app/pin_numbers/resources/classes/pin_numbers.php +++ b/app/pin_numbers/resources/classes/pin_numbers.php @@ -57,16 +57,6 @@ if (!class_exists('pin_numbers')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 504c435eb4..6b11997a05 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -88,12 +88,6 @@ } } - public function __destruct() { - foreach ($this as $key => $value) { - unset($this->$key); - } - } - public function get_domain_uuid() { return $this->domain_uuid; } diff --git a/app/recordings/resources/classes/switch_recordings.php b/app/recordings/resources/classes/switch_recordings.php index d3de3fc6cd..a0f94d5dae 100644 --- a/app/recordings/resources/classes/switch_recordings.php +++ b/app/recordings/resources/classes/switch_recordings.php @@ -62,16 +62,6 @@ if (!class_exists('switch_recordings')) { } - /** - * 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); - } - } - /** * list recordings */ diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index 0f82803ce6..61fcffcc32 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -51,16 +51,6 @@ if (!class_exists('registrations')) { } - /** - * 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); - } - } - /** * get the registrations */ diff --git a/app/ring_groups/resources/classes/ring_groups.php b/app/ring_groups/resources/classes/ring_groups.php index 1677f30538..da93acef00 100644 --- a/app/ring_groups/resources/classes/ring_groups.php +++ b/app/ring_groups/resources/classes/ring_groups.php @@ -62,16 +62,6 @@ if (!class_exists('ring_groups')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/scripts/resources/classes/scripts.php b/app/scripts/resources/classes/scripts.php index 7d10ef4c6a..2d42e7d247 100644 --- a/app/scripts/resources/classes/scripts.php +++ b/app/scripts/resources/classes/scripts.php @@ -67,16 +67,6 @@ if (!class_exists('scripts')) { $this->db_password = $database->password; } - /** - * 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); - } - } - /** * Corrects the path for specifically for windows */ diff --git a/app/sip_profiles/resources/classes/sip_profiles.php b/app/sip_profiles/resources/classes/sip_profiles.php index 9cf583b2d5..cc1ef75573 100644 --- a/app/sip_profiles/resources/classes/sip_profiles.php +++ b/app/sip_profiles/resources/classes/sip_profiles.php @@ -62,16 +62,6 @@ if (!class_exists('sip_profiles')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/sofia_global_settings/resources/classes/sofia_global_settings.php b/app/sofia_global_settings/resources/classes/sofia_global_settings.php index 65d8b10b69..70a4e364bf 100644 --- a/app/sofia_global_settings/resources/classes/sofia_global_settings.php +++ b/app/sofia_global_settings/resources/classes/sofia_global_settings.php @@ -61,16 +61,6 @@ if (!class_exists('sofia_global_settings')) { $this->location = 'sofia_global_settings.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/app/streams/resources/classes/streams.php b/app/streams/resources/classes/streams.php index c2ce783bb0..54c1c8ea08 100644 --- a/app/streams/resources/classes/streams.php +++ b/app/streams/resources/classes/streams.php @@ -57,16 +57,6 @@ if (!class_exists('streams')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/vars/resources/classes/vars.php b/app/vars/resources/classes/vars.php index 236d767409..86ee52dea6 100644 --- a/app/vars/resources/classes/vars.php +++ b/app/vars/resources/classes/vars.php @@ -57,16 +57,6 @@ if (!class_exists('vars')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/voicemail_greetings/resources/classes/voicemail_greetings.php b/app/voicemail_greetings/resources/classes/voicemail_greetings.php index 575fe6dfde..d872bfeac8 100644 --- a/app/voicemail_greetings/resources/classes/voicemail_greetings.php +++ b/app/voicemail_greetings/resources/classes/voicemail_greetings.php @@ -63,16 +63,6 @@ if (!class_exists('voicemail_greetings')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/app/voicemails/resources/classes/voicemail.php b/app/voicemails/resources/classes/voicemail.php index 460d038545..b83d3c6a73 100644 --- a/app/voicemails/resources/classes/voicemail.php +++ b/app/voicemails/resources/classes/voicemail.php @@ -70,12 +70,6 @@ } - public function __destruct() { - foreach ($this as $key => $value) { - unset($this->$key); - } - } - public function get_voicemail_id() { //check if for valid input diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 335db778f4..090041a04c 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -80,16 +80,6 @@ if (!class_exists('xml_cdr')) { $this->uuid_prefix = 'xml_cdr_'; } - /** - * Called when there are no references to a particular object - * unset the variables used in the class - */ - public function __destruct() { - if (isset($this)) foreach ($this as $key => $value) { - unset($this->$key); - } - } - /** * cdr process logging */ diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 70ef866df5..c031ccd770 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -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 diff --git a/core/dashboard/resources/classes/dashboard.php b/core/dashboard/resources/classes/dashboard.php index 0a19709006..ed68460bb8 100644 --- a/core/dashboard/resources/classes/dashboard.php +++ b/core/dashboard/resources/classes/dashboard.php @@ -61,16 +61,6 @@ if (!class_exists('dashboard')) { $this->location = 'dashboard.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/core/databases/resources/classes/databases.php b/core/databases/resources/classes/databases.php index 30edddf9fe..e201662968 100644 --- a/core/databases/resources/classes/databases.php +++ b/core/databases/resources/classes/databases.php @@ -53,16 +53,6 @@ if (!class_exists('databases')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/core/default_settings/resources/classes/default_settings.php b/core/default_settings/resources/classes/default_settings.php index 797d0b2c8b..9ea08519ca 100644 --- a/core/default_settings/resources/classes/default_settings.php +++ b/core/default_settings/resources/classes/default_settings.php @@ -60,16 +60,6 @@ if (!class_exists('default_settings')) { $this->location = 'default_settings.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/core/domain_settings/resources/classes/domain_settings.php b/core/domain_settings/resources/classes/domain_settings.php index 4b61a9b22e..f7ef176769 100644 --- a/core/domain_settings/resources/classes/domain_settings.php +++ b/core/domain_settings/resources/classes/domain_settings.php @@ -63,16 +63,6 @@ if (!class_exists('domain_settings')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/core/events/resources/classes/events.php b/core/events/resources/classes/events.php index 9d70425b5b..9b2873896d 100644 --- a/core/events/resources/classes/events.php +++ b/core/events/resources/classes/events.php @@ -54,16 +54,6 @@ class events { $this->required['headers'][] = "user_uuid"; } - /** - * 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); - } - } - /** * This function will load all available plugins into the memory * Rules: diff --git a/core/install/resources/classes/install.php b/core/install/resources/classes/install.php index 7b4e8ef8cd..2bece2f5a6 100644 --- a/core/install/resources/classes/install.php +++ b/core/install/resources/classes/install.php @@ -24,16 +24,6 @@ if (!class_exists('install')) { $this->app_uuid = '75507e6e-891e-11e5-af63-feff819cdc9f'; } - /** - * 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); - } - } - /** *

Used to create the config.conf file.

*

BSD /usr/local/etc/fusionpbx

diff --git a/core/user_logs/resources/classes/user_logs.php b/core/user_logs/resources/classes/user_logs.php index 73326487dd..0ca789ee95 100644 --- a/core/user_logs/resources/classes/user_logs.php +++ b/core/user_logs/resources/classes/user_logs.php @@ -59,16 +59,6 @@ if (!class_exists('user_logs')) { $this->location = 'user_logs.php'; } - /** - * 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); - } - } - /** * add user_logs */ diff --git a/core/user_settings/resources/classes/user_settings.php b/core/user_settings/resources/classes/user_settings.php index 55b07df8e1..fd85b5a170 100644 --- a/core/user_settings/resources/classes/user_settings.php +++ b/core/user_settings/resources/classes/user_settings.php @@ -62,16 +62,6 @@ if (!class_exists('user_settings')) { } - /** - * 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); - } - } - /** * delete records */ diff --git a/core/users/resources/classes/users.php b/core/users/resources/classes/users.php index e847abf058..08405aa810 100644 --- a/core/users/resources/classes/users.php +++ b/core/users/resources/classes/users.php @@ -59,16 +59,6 @@ if (!class_exists('users')) { $this->location = 'users.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/resources/classes/cache.php b/resources/classes/cache.php index 6bf503ee1e..fc25e30cd7 100644 --- a/resources/classes/cache.php +++ b/resources/classes/cache.php @@ -17,16 +17,6 @@ class cache { //place holder } - /** - * 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); - } - } - /** * Add a specific item in the cache * @var string $key the cache id diff --git a/resources/classes/captcha.php b/resources/classes/captcha.php index 9eafc18042..972b20f4c7 100644 --- a/resources/classes/captcha.php +++ b/resources/classes/captcha.php @@ -43,16 +43,6 @@ class captcha { } - /** - * 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); - } - } - /** * Create the captcha image * @var string $code diff --git a/resources/classes/config.php b/resources/classes/config.php index 64a156042b..3cb50e91a8 100644 --- a/resources/classes/config.php +++ b/resources/classes/config.php @@ -30,16 +30,6 @@ class config { //place holder } - /** - * 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); - } - } - /** * Determine whether the config.php exists * @var string $db_type - type of database diff --git a/resources/classes/database.php b/resources/classes/database.php index 3d5bf77933..fe903f34b5 100644 --- a/resources/classes/database.php +++ b/resources/classes/database.php @@ -383,16 +383,6 @@ } } - /** - * 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); - } - } - /** *

Connect to the database.

*

Database driver must be set before calling connect.

diff --git a/resources/classes/domains.php b/resources/classes/domains.php index 2d22a1a1de..40daed068c 100644 --- a/resources/classes/domains.php +++ b/resources/classes/domains.php @@ -61,16 +61,6 @@ if (!class_exists('domains')) { $this->location = 'domains.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/resources/classes/email.php b/resources/classes/email.php index 5fc6c38853..ac087b461a 100644 --- a/resources/classes/email.php +++ b/resources/classes/email.php @@ -66,16 +66,6 @@ if (!class_exists('email')) { $this->read_confirmation = false; } - /** - * 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); - } - } - /** * parse raw emails */ diff --git a/resources/classes/file.php b/resources/classes/file.php index 52c244bff0..108305cb7b 100644 --- a/resources/classes/file.php +++ b/resources/classes/file.php @@ -20,16 +20,6 @@ class file { //place holder } - /** - * 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); - } - } - /** * Glob search for a list of files * @var string $dir this is the directory to scan diff --git a/resources/classes/groups.php b/resources/classes/groups.php index f9c5be02ab..1c76ecf5a8 100644 --- a/resources/classes/groups.php +++ b/resources/classes/groups.php @@ -55,16 +55,6 @@ if (!class_exists('groups')) { $this->app_uuid = '2caf27b0-540a-43d5-bb9b-c9871a1e4f84'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/resources/classes/menu.php b/resources/classes/menu.php index dccbe46353..9dea6d8ac9 100644 --- a/resources/classes/menu.php +++ b/resources/classes/menu.php @@ -59,16 +59,6 @@ if (!class_exists('menu')) { $this->location = 'menus.php'; } - /** - * 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); - } - } - /** * delete rows from the database */ diff --git a/resources/classes/sounds.php b/resources/classes/sounds.php index d6787355f2..6fe29ec1f6 100644 --- a/resources/classes/sounds.php +++ b/resources/classes/sounds.php @@ -19,16 +19,6 @@ class sounds { } - /** - * 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); - } - } - /** * Add a specific item in the cache * @var array $array diff --git a/resources/classes/switch_settings.php b/resources/classes/switch_settings.php index efa437bbfd..3d2ad4561b 100644 --- a/resources/classes/switch_settings.php +++ b/resources/classes/switch_settings.php @@ -19,16 +19,6 @@ if (!class_exists('switch_settings')) { } - /** - * 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); - } - } - /** * settings Set switch directories in default settings */ diff --git a/resources/classes/template.php b/resources/classes/template.php index 656ac1dd36..afd92e1864 100644 --- a/resources/classes/template.php +++ b/resources/classes/template.php @@ -65,12 +65,6 @@ } } - public function __destruct() { - foreach ($this as $key => $value) { - unset($this->$key); - } - } - public function assign($key, $value) { if ($this->engine === 'smarty') { $this->object->assign($key, $value); diff --git a/resources/classes/text.php b/resources/classes/text.php index a0436fc19f..a2fcacdc4a 100644 --- a/resources/classes/text.php +++ b/resources/classes/text.php @@ -50,16 +50,6 @@ class text { } } - /** - * Called when there are no references to a particular object - * unset the variables used in the class - */ - public function __destruct() { - if (is_array($this)) foreach ($this as $key => $value) { - unset($this->$key); - } - } - /** * Get a specific item from the cache * @var string $language_code examples: en-us, es-cl, fr-fr, pt-pt diff --git a/resources/classes/token.php b/resources/classes/token.php index 2830e33a9c..46f3b04dc3 100644 --- a/resources/classes/token.php +++ b/resources/classes/token.php @@ -43,16 +43,6 @@ class token { } - /** - * 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); - } - } - /** * Create the token * @var string $key diff --git a/resources/classes/vcard.php b/resources/classes/vcard.php index 30f51bd85c..015ebb8e79 100644 --- a/resources/classes/vcard.php +++ b/resources/classes/vcard.php @@ -62,16 +62,6 @@ class vcard { return true; } - /** - * 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); - } - } - /* build() method checks all the values, builds appropriate defaults for missing values, generates the vcard data string.