BenManu\StyleGuide\StyleGuideController
StyleGuideController
Synopsis
class StyleGuideController
extends ContentController
{
- // members
- protected StyleGuide $styleguide_service;
- protected ArrayData $fixture;
- protected PageService $pageService;
- private static string $service = '';
- private static string $prettify_url = '';
- private static array $paths = ;
- private static array $css_files = ;
- private static array $js_files = ;
- // methods
- public void init()
- public void index()
- public void setService()
- public void setRequirements()
- public void loadFixture()
- public void getFixture()
- public void getNavigation()
- public ArrayList getSubNavigation()
- public ArrayList getSections()
- public String Link()
- public static String getLink()
Hierarchy
Extends
- SilverStripe\CMS\Controllers\ContentController
Members
private
- $css_files
- $js_files
- $paths
- $prettify_url
- $service
protected
- $fixture — BenManu\StyleGuide\ArrayData
- $pageService — BenManu\StyleGuide\PageService
- $styleguide_service — BenManu\StyleGuide\StyleGuide
Methods
public
- Link() — Get a link to the controller with optional action parameter.
- getFixture()
- getLink() — Create a string suitable for a link in the style guide.
- getSections() — Return sections filtered by the current url action.
- index()
- init()
- loadFixture() — Load a yml fixture file if defined into an {@link StyleGuideFixtureFactory}.
- setRequirements() — Set the styleguides css and js requirements.
- setService() — Set the styleguide service on init.