public function do_actions() { try { VideoLibrary_DatabaseHelper::add_all_videos_to_external_videos_frame_grabbing_queue(); $output = 'Succeeded' . PHP_EOL; print_r($this->colour_output($output, 'green')); } catch (Exception $e) { $output = 'Failed' . ' (' . $e->getMessage() . ")" . PHP_EOL; print_r($this->colour_output($output, 'red')); } print_r('Exiting...' . PHP_EOL); }