private function _get_current_service_padding()
 {
     global $current_screen;
     if (is_admin() && !empty($current_screen) && $current_screen->id == 'appointments_page_app_settings') {
         if (!empty($_REQUEST['tab']) && $_REQUEST['tab'] == 'working_hours') {
             $service = 0;
             if ($this->_core->worker) {
                 $service = $this->resolve_service_id($this->_core->worker);
             } else {
                 $service = $this->resolve_service_id();
             }
             $this->_core->service = $service ? $service : $this->_core->service;
         }
     } else {
         if (is_admin() && DOING_AJAX) {
             //Get service ID for the current appointment when using inline edit.
             if ($_REQUEST['action'] == 'inline_edit' && !empty($_REQUEST['app_id'])) {
                 $app = $this->_core->get_app($_REQUEST['app_id']);
                 $this->_core->service = $app->service;
             }
         }
     }
     if ($this->_core->service && !empty($this->_data['service_padding'][$this->_core->service])) {
         // Determine the service padding
         return $this->_data['service_padding'][$this->_core->service];
     }
     return false;
 }
 public function manual_cleanup_data($status, $app_id)
 {
     if ('removed' != $status) {
         return false;
     }
     $this->cleanup_data($this->_core->get_app($app_id));
 }