System\Controllers\Settings

Extends:

Settings controller

Public properties

public array $requiredPermissions

requiredPermissions to view this page

Show inherited public properties

Inherited public properties

Protected properties

protected WidgetBase $formWidget

formWidget reference to the widget object

Show inherited protected properties

Inherited protected properties

Public methods

public void __construct()

__construct

public void formRender($options=array())

formRender renders the form

Parameters
  • $options

public void index()

index action

public void mysettings()

mysettings action

public void update($author, $plugin, $code=NULL)

update action

Parameters
  • $author
  • $plugin
  • $code

public void update_onResetDefault($author, $plugin, $code=NULL)

update_onResetDefault AJAX handler

Parameters
  • $author
  • $plugin
  • $code

public void update_onSave($author, $plugin, $code=NULL)

update_onSave AJAX handler

Parameters
  • $author
  • $plugin
  • $code

Show inherited public methods

Inherited public methods

  • public void __call($name, $params) - defined in October\Rain\Extension\Extendable.
  • public static void __callStatic($name, $params) - defined in October\Rain\Extension\Extendable.
  • public void __get($name) - defined in October\Rain\Extension\Extendable.
  • public void __set($name, $value) - defined in October\Rain\Extension\Extendable.
  • public boolean actionExists(string $name, bool $internal=false) - defined in Backend\Classes\Controller. actionExists is used internally to determines whether an action with the specified name exists.
  • public void actionUrl($action=NULL, $path=NULL) - defined in Backend\Classes\Controller. Returns a URL for this controller and supplied action.
  • public void addCss($name, $attributes=array()) - defined in Backend\Classes\Controller. addCss includes a StyleSheet asset to the asset list.
  • public void addCssBundle($name, $attributes=array()) - defined in Backend\Classes\Controller. addCssBundle includes a CSS asset to the bundled combiner stream.
  • public void addDynamicMethod(string $dynamicName, callable $method, string $extension=NULL) - defined in October\Rain\Extension\Extendable. Programmatically adds a method to the extendable class.
  • public void addDynamicProperty(string $dynamicName, string $value=NULL) - defined in October\Rain\Extension\Extendable. Programmatically adds a property to the extendable class.
  • public void addJs($name, $attributes=array()) - defined in Backend\Classes\Controller. addJs includes a JavaScript asset to the asset list.
  • public void addJsBundle($name, $attributes=array()) - defined in Backend\Classes\Controller. addJsBundle includes a JS asset to the bundled combiner stream.
  • public void addRss($name, $attributes=array()) - defined in Backend\Classes\Controller. addRss adds an RSS link asset to the asset list. Call $this->makeAssets().
  • public void addViewPath(string|array $path) - defined in Backend\Classes\Controller. addViewPath prepends a path on the available view path locations.
  • public mixed asExtension(string $shortName) - defined in October\Rain\Extension\Extendable. Short hand for getClassExtension() method, except takes the short.
  • public void beforeDisplay() - defined in Backend\Classes\Controller. beforeDisplay is a method to override in your controller as a way to execute logic before.
  • public self bindEvent($event, $callback, $priority=0) - defined in Backend\Classes\Controller. Create a new event binding.
  • public self bindEventOnce($event, $callback) - defined in Backend\Classes\Controller. Create a new event binding that fires once only.
  • public static void clearExtendedClasses() - defined in October\Rain\Extension\Extendable. Clear the list of extended classes so they will be re-extended.
  • public void combineAssets($assets, $localPath='') - defined in Backend\Classes\Controller. combineAssets runs asset paths through the Asset Combiner.
  • public static void extend($callback) - defined in October\Rain\Extension\Extendable.
  • public void extendClassWith(string $extensionName) - defined in October\Rain\Extension\Extendable. Dynamically extend a class with a specified behavior.
  • public mixed extendableCall(string $name, array $params=NULL) - defined in October\Rain\Extension\Extendable. Magic method for __call().
  • public static mixed extendableCallStatic(string $name, array $params=NULL) - defined in October\Rain\Extension\Extendable. Magic method for __callStatic().
  • public void extendableConstruct() - defined in October\Rain\Extension\Extendable. extendableConstruct should be called as part of the constructor.
  • public static void extendableExtendCallback(callable $callback) - defined in October\Rain\Extension\Extendable. extendableExtendCallback is a helper method for ::extend() static method.
  • public string extendableGet(string $name) - defined in October\Rain\Extension\Extendable. Magic method for __get().
  • public string extendableSet(string $name, string $value) - defined in October\Rain\Extension\Extendable. Magic method for __set().
  • public array fireEvent(string $event, array $params=array(), boolean $halt=false) - defined in Backend\Classes\Controller. Fire an event and call the listeners.
  • public mixed fireSystemEvent(string $event, array $params=array(), boolean $halt=true) - defined in Backend\Classes\Controller. Fires a combination of local and global events. The first segment is removed.
  • public string fireViewEvent(string $event, array $params=array()) - defined in Backend\Classes\Controller. Special event function used for extending within view files,
  • public void flushAssets() - defined in Backend\Classes\Controller. Disables the use, and subequent broadcast, of assets. This is useful.
  • public string getAjaxHandler() - defined in Backend\Classes\Controller. Returns the AJAX handler for the current request, if available.
  • public string getAssetPath(string $fileName, string $assetPath=NULL) - defined in Backend\Classes\Controller. Locates a file based on it's definition. If the file starts with.
  • public array getAssetPaths() - defined in Backend\Classes\Controller. Returns an array of all registered asset paths.
  • public mixed getClassExtension(string $name) - defined in October\Rain\Extension\Extendable. Returns a behavior object from an extendable class, example:.
  • public array getClassMethods() - defined in October\Rain\Extension\Extendable. Get a list of class methods, extension equivalent of get_class_methods().
  • public string getConfigPath(string $fileName, mixed $configPath=NULL) - defined in Backend\Classes\Controller. Locates a file based on it's definition. If the file starts with.
  • public array getDynamicProperties() - defined in October\Rain\Extension\Extendable. Returns all dynamic properties and their values.
  • public void getFatalError() - defined in Backend\Classes\Controller. getFatalError returns error message.
  • public void getId($suffix=NULL) - defined in Backend\Classes\Controller. Returns a unique ID for the controller and route. Useful in creating HTML markup.
  • public void getPublicActions() - defined in Backend\Classes\Controller. getPublicActions returns the controllers public actions.
  • public Symfony\Component\HttpFoundation\ResponseHeaderBag|null getResponseHeaders() - defined in Backend\Classes\Controller. Get the header response bag.
  • public int getStatusCode() - defined in Backend\Classes\Controller. Returns the status code for the current web response.
  • public string getViewPath(string $fileName, mixed $viewPath=NULL) - defined in Backend\Classes\Controller. getViewPath locates a file based on its definition. The file name can be prefixed.
  • public array getViewPaths() - defined in Backend\Classes\Controller. getViewPaths returns the active view path locations.
  • public string guessConfigPath(string $suffix='') - defined in Backend\Classes\Controller. Guess the package path for the called class.
  • public string guessConfigPathFrom(string $class, string $suffix='') - defined in Backend\Classes\Controller. Guess the package path from a specified class.
  • public string guessViewPath(string $suffix='', bool $isPublic=false) - defined in Backend\Classes\Controller. guessViewPath guesses the package path for the called class.
  • public string guessViewPathFrom(string $class, string $suffix='', bool $isPublic=false) - defined in Backend\Classes\Controller. guessViewPathFrom guesses the package path from a specified class.
  • public void handleError($exception) - defined in Backend\Classes\Controller. Sets standard page variables in the case of a controller error.
  • public void hasAssetsDefined() - defined in Backend\Classes\Controller. hasAssetsDefined returns true if assets any have been added.
  • public boolean hasFatalError() - defined in Backend\Classes\Controller. Determines whether a fatal error has been set or not.
  • public boolean isBackendHintHidden(string $name) - defined in Backend\Classes\Controller. Checks if a hint has been hidden by the user.
  • public boolean isClassExtendedWith(string $name) - defined in October\Rain\Extension\Extendable. Check if extendable class is extended with a behavior object.
  • public void isPublicAction($action) - defined in Backend\Classes\Controller. isPublicAction returns true if the current action is public.
  • public string makeAssets(string $type=NULL) - defined in Backend\Classes\Controller. Outputs <link> and <script> tags to load assets previously added with addJs and addCss method calls.
  • public object makeConfig(array $configFile=array(), array $requiredConfig=array()) - defined in Backend\Classes\Controller. Reads the contents of the supplied file and applies it to this object.
  • public stdClass makeConfigFromArray(array $configArray=array()) - defined in Backend\Classes\Controller. Makes a config object from an array, making the first level keys properties of a new object.
  • public string makeFileContents(string $filePath, array $extraParams=array()) - defined in Backend\Classes\Controller. makeFileContents includes a file path using output buffering.
  • public Backend\Classes\FormWidgetBase makeFormWidget(string $class, mixed $fieldConfig=array(), array $widgetConfig=array()) - defined in Backend\Classes\Controller. Makes a form widget object with the supplied form field and widget configuration.
  • public string makeHintPartial(string $name, string $partial=NULL, array $params=array()) - defined in Backend\Classes\Controller. Renders a hint partial, used for displaying informative information that.
  • public mixed makeLayout(string $name=NULL, array $params=array(), bool $throwException=true) - defined in Backend\Classes\Controller. makeLayout renders a layout.
  • public string makeLayoutPartial(string $partial, array $params=array()) - defined in Backend\Classes\Controller. makeLayoutPartial renders a layout partial.
  • public mixed makePartial(string $partial, array $params=array(), bool $throwException=true) - defined in Backend\Classes\Controller. makePartial renders a partial file contents located in the views folder.
  • public mixed makeResponse(mixed $contents) - defined in Backend\Classes\Controller. Prepares a response that considers overrides and custom responses.
  • public string makeView(string $view) - defined in Backend\Classes\Controller. makeView loads a view with the name specified. Applies layout if its name is provided.
  • public string makeViewContent(string $contents, string $layout=NULL) - defined in Backend\Classes\Controller. makeViewContent renders supplied contents inside a layout.
  • public Backend\Classes\WidgetBase makeWidget(string $class, array $widgetConfig=array()) - defined in Backend\Classes\Controller. Makes a widget object with the supplied configuration file.
  • public stdClass mergeConfig(mixed $configA, mixed $configB) - defined in Backend\Classes\Controller. Merges two configuration sources, either prepared or not, and returns.
  • public boolean methodExists(string $name) - defined in October\Rain\Extension\Extendable. Checks if a method exists, extension equivalent of method_exists().
  • public void onHideBackendHint() - defined in Backend\Classes\Controller. Ajax handler to hide a backend hint, once hidden the partial.
  • public void outputVueComponentTemplates() - defined in Backend\Classes\Controller.
  • public void pageAction() - defined in Backend\Classes\Controller. Invokes the current controller action without rendering a view,
  • public boolean propertyExists(string $name) - defined in October\Rain\Extension\Extendable. Checks if a property exists, extension equivalent of property_exists().
  • public void registerVueComponent(String $componentClassName) - defined in Backend\Classes\Controller. Registers a Vue component to be loaded when the action view renders.
  • public mixed run(string $action=NULL, array $params=array()) - defined in Backend\Classes\Controller. run executes the controller action.
  • public $this setResponse(mixed $response) - defined in Backend\Classes\Controller. Sets the response for the current page request cycle, this value takes priority.
  • public $this setResponseCookie(Symfony\Component\HttpFoundation\Cookie|mixed $cookie) - defined in Backend\Classes\Controller. Add a cookie to the response.
  • public $this setResponseHeader(string $key, array|string $values, bool $replace=true) - defined in Backend\Classes\Controller. Set a header on the Response.
  • public $this setStatusCode(int $code) - defined in Backend\Classes\Controller. Sets the status code for the current web response.
  • public self unbindEvent(string $event=NULL) - defined in Backend\Classes\Controller. Destroys an event binding.

Protected methods

protected void createModel($item)

Internal method, prepare the list model object

Parameters
  • $item

protected void findSettingItem($author, $plugin, $code)

Locates a setting item for a module or plugin

Parameters
  • $author
  • $plugin
  • $code

protected void initWidgets(Model $model)

initWidgets prepare the widgets used by this action

Parameters
  • Model $model

Show inherited protected methods

Inherited protected methods

  • protected void combineBundledAssets($type) - defined in Backend\Classes\Controller. combineBundledAssets spins over every bundle definition and combines them to an asset.
  • protected array emitterEventSortEvents(string $eventName) - defined in Backend\Classes\Controller. Sort the listeners for a given event by priority.
  • protected void execAjaxHandlers() - defined in Backend\Classes\Controller. execAjaxHandlers is used internally and unvokes a controller event handler and.
  • protected void execPageAction(string $actionName, array $parameters) - defined in Backend\Classes\Controller. This method is used internally.
  • protected void execPostbackHandler() - defined in Backend\Classes\Controller. execPostbackHandler is used internally to execute a postback version of an.
  • protected boolean extendableIsAccessible(mixed $class, string $propertyName) - defined in October\Rain\Extension\Extendable. Checks if a property is accessible, property equivalent of is_callable().
  • protected void extensionExtractMethods(string $extensionName, object $extensionObject) - defined in October\Rain\Extension\Extendable. Extracts the available methods from a behavior and adds it to the.
  • protected string getAssetEntryBuildPath(array $asset) - defined in Backend\Classes\Controller. Internal helper, attaches a build code to an asset path.
  • protected string getAssetScheme(string $asset) - defined in Backend\Classes\Controller. Internal helper, get asset scheme.
  • protected void getLocalPath($relativePath) - defined in Backend\Classes\Controller. getLocalPath converts a relative path to a local path.
  • protected void handleViewException($e, $obLevel) - defined in Backend\Classes\Controller. handleViewException handles a view exception.
  • protected void isVueComponentRegistered($componentClassName) - defined in Backend\Classes\Controller.
  • protected void makeVueComponent($className) - defined in Backend\Classes\Controller.
  • protected void makeXsrfCookie() - defined in Backend\Classes\Controller. makeXsrfCookie adds anti-CSRF cookie.
  • protected void removeDuplicates() - defined in Backend\Classes\Controller. Removes duplicate assets from the entire collection.
  • protected void renderAssetAttributes($type, $asset) - defined in Backend\Classes\Controller. renderAssetAttributes takes an asset definition and returns the necessary HTML output.
  • protected boolean runAjaxHandler($handler) - defined in Backend\Classes\Controller. runAjaxHandler tries to find and run an AJAX handler in the page action.
  • protected mixed runAjaxHandlerForWidget($widget, $handler) - defined in Backend\Classes\Controller. Specific code for executing an AJAX handler for a widget.
  • protected bool verifyCsrfToken() - defined in Backend\Classes\Controller. verifyCsrfToken checks if the request requires verification first (not GET, HEAD, OPTIONS) and.
  • protected bool verifyForceSecure() - defined in Backend\Classes\Controller. verifyForceSecure checks if the back-end should force a secure protocol.