Firebrand\Hail\Controllers\HailController
Hail Controller (pageless)
Used by the front end to request the hail module via ajax
All endpoints are only accessible to logged in users
- Author: Marc Espiard, Firebrand
Synopsis
class HailController
extends Controller
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- // methods
- public HTTPResponse fetch()
- public HTTPResponse progress()
- public HTTPResponse fetchOneSync()
- public HTTPResponse articles()
- public HTTPResponse makeJsonReponse()
Hierarchy
Extends
- SilverStripe\Control\Controller
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $allowed_actions
- $url_handlers
Methods
public
- articles() — Retrieve a list of articles from the database
- fetch() — Add a Fetch job to the queue A cron job will then start fetching and report on progress The class(es) of object to fetch are specified in the URL, e.g.: - * for all fetchable classes - Firebrand-Hail-Models-Article for all articles - Firebrand-Hail-Models-Publication for all publications - Firebrand-Hail-Models-PublicTag for all public tags - Firebrand-Hail-Models-PrivateTag for all private tags
- fetchOneSync() — Fetch one specific Hail object synchronously and update its database record
- makeJsonReponse() — Make the JSON response
- progress() — Get the progress on the current fetch job running