This will one day have methods for various different aspects of the cms incl. widgets, search handlers, tabs, etc. Dare to dream
This is the code documentation for the SproutCMS project
Search documentation |
class RegisterThis will one day have methods for various different aspects of the cms incl. widgets, search handlers, tabs, etc. Dare to dream
Variables
Functions
public addDbtoolsApivoid Register::addDbtoolsApi ( array $api ); Register an API test form public adminControllersvoid Register::adminControllers ( string $namespace , array $controllers ); Registers a module's shorthand controller names for the admin controller public adminTilevoid Register::adminTile ( string $name , string $icon , string $text , array $controllers [, int $sort_order ] ); Register a "tile", which is shown in the modules menu in the admin A list of available icons can be found in the file sprout/media/fonts/iconfont/demo.html public contentReplacevoid Register::contentReplace ( string $chain , string $func );
Register a method for a content replacement chain
Registered method will receive one string argument and should return a string.
For the 'inner_html' chain, the input and output should be HTML
Common chains:
inner_html The "inside" HTML of widgets (richtext, blog content, etc)
main_content The main content of inner and wide templatespublic coreContentControllersvoid Register::coreContentControllers ( ); Register the various "content" controllers which are provided by the SproutCMS core This will allow these controllers to have permissions (e.g. per-tab or per-record) public cronJobvoid Register::cronJob ( string $schedule , string $class , string $func ); Register a method to be called for cron job processing By default there is only one schedule, 'daily', but it's easy to add another schedule by duplicating the cron_daily.sh file and making the new file call the new schedule public displayConditionvoid Register::displayCondition ( string $class , string $group , string $label ); Register a display condition (this is part of the Context Engine on widgets) Condition classes must extend the base class Sprout\Helpers\DisplayConditions\DisplayCondition public docImportvoid Register::docImport ( mixed $ext , mixed $class , mixed $label ); Register a DocImport class public emailTextvoid Register::emailText ( string $code , array $field_defs , string $default_html_view ); Register an email text public extraPagevoid Register::extraPage ( mixed $name , mixed $label ); Register a type for an extra page public featurevoid Register::feature ( string $code , string $namespace ); Register an available feature, and the root namespace where the helpers are found Features allow the Sprout core to access code provided by modules without needing to hard-code the namespace of these modules public frontEndControllervoid Register::frontEndController ( string $name , string $label ); Register a front-end controller (also called a tool page) public getAdminControllerstring Register::getAdminController ( string $shorthand ); Converts an shorthand admin controller name to its full class name, including modular namespace public getAdminControllersarray Register::getAdminControllers ( ); Gets the list of modular admin controllers with registered shorthands public getAdminTilesarray Register::getAdminTiles ( ); Return an array of admin tiles. Each tile has four keys, 'name', 'icon', 'text', and 'controllers'. public getAllCronJobsarray Register::getAllCronJobs ( ); Return all registered cron jobs public getContentReplaceMethodsarray Register::getContentReplaceMethods ( string $chain ); Return the methods for a given content replace chain public getCronJobsarray Register::getCronJobs ( string $schedule ); Return the methods for a given cron job schedule public getDbtoolsApiarray Register::getDbtoolsApi ( ); Return list of dbtool api tests public getDisplayConditionsarray Register::getDisplayConditions ( ); Return a list of all display condition registrations public getDocImportsunknown Register::getDocImports ( ); Get all `DocImport`s public getEmailTextunknown Register::getEmailText ( mixed $code ); Get a single registered email texts. Returns an EmailTextReg object public getEmailTextsunknown Register::getEmailTexts ( ); Get all registered email texts. Returns an array of EmailTextReg objects public getExtraPagesunknown Register::getExtraPages ( ); Get all extra pages public getFeatureNamespacestring Register::getFeatureNamespace ( string $code ); Return the namespace for a given feature public getFrontEndControllersunknown Register::getFrontEndControllers ( ); Get all front-end controllers public getLinkspecsunknown Register::getLinkspecs ( ); Get all `LinkSpec`s public getModeratorsunknown Register::getModerators ( ); Get all moderation classes public getModuleDirsarray Register::getModuleDirs ( ); Gets a list of paths to the active modules public getModulesarray Register::getModules ( ); Gets the list of active modules public getPageattrsunknown Register::getPageattrs ( ); Get all extra pages public getRteLibrariesunknown Register::getRteLibraries ( ); Get all `RteLibrary`s public getSearchHandlersarray Register::getSearchHandlers ( ); Return list of SearchHandler objects public getSitemapGensunknown Register::getSitemapGens ( ); Get a list of all sitemap.xml generator classes public getWidgetTilesarray Register::getWidgetTiles ( mixed $area_name ); Return an array of widget tiles for a given widget area Each tile has four keys, 'name', 'icon', 'text', and 'widgets'. public hasFeaturebool Register::hasFeature ( string $code ); Is the given feature currently available? public linkspecvoid Register::linkspec ( mixed $name , mixed $label ); Register a LinkSpec public moderatorvoid Register::moderator ( mixed $class_name ); Register a moderation class public modulevoid Register::module ( string $name ); Registers a module public modulesvoid Register::modules ( array $names ); Registers a list of modules public pageattrvoid Register::pageattr ( string $name , string $label [, string $editor ] ); Register a type for an extra page public rteLibraryvoid Register::rteLibrary ( mixed $class_name ); Register a RteLibrary class public searchHandlervoid Register::searchHandler ( string $class , string $table , array $where ); Register search handler public sitemapGenvoid Register::sitemapGen ( mixed $class_name ); Register a sitemap.xml generator class public templateVariablevoid Register::templateVariable ( string $name , mixed $item ); Register an helper to expose to twig templates via the 'sprout' namespace. public widgetTilevoid Register::widgetTile ( string $area_name , string $name , string $icon , string $text , array $widgets ); Register a widget "tile", which is shown when adding widgets (content blocks) to a page If a tile already exists with that name, the widgets will be added to that tile A list of available icons can be found in the file sprout/media/fonts/iconfont/demo.html |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Wednesday, 5th August, 2026 at 03:31 pm |
|