scope = $scope; $this->action = "{$this->action}_{$scope}"; parent::__construct(); } abstract public function push_items(); /** * Fire before start handle the tasks */ protected function handle_before() { WRIO_Plugin::app()->logger->info( 'START auto optimize process.' ); } /** * Fire after end handle the tasks */ protected function handle_after() { WRIO_Plugin::app()->logger->info( 'END auto optimize process.' ); } /** * Fire after complete handle * * @return void */ protected function handle_after_complete() { WRIO_Plugin::app()->updatePopulateOption( 'process_running', false ); } }