/** * Get instance of Shortcake controller. * * Instantiates object on the fly when not already loaded. * * @return object */ public static function get_instance() { if (!isset(self::$instance)) { self::$instance = new self(); self::$instance->setup_actions(); } return self::$instance; }