-
Backend
-
Behaviors
-
FormController
-
ImportExportController
-
ListController
-
RelationController
- FormController
- ImportExportController
- ListController
- RelationController
- ReorderController
- UserPreferencesModel
-
-
Classes
-
Dashboard
-
NavigationManager
-
WidgetManager
- AuthManager
- BackendController
- Controller
- ControllerBehavior
- DashboardManager
- DashboardWidgetBase
- FilterScope
- FilterWidgetBase
- FormField
- FormTabs
- FormWidgetBase
- ListColumn
- LoginCustomization
- MainMenuItem
- NavigationManager
- ReportDataSourceBase
- ReportDataSourceManager
- ReportWidgetBase
- RoleManager
- RolePermission
- SettingsController
- SideMenuItem
- Skin
- StaticReportWidgetContainer
- VueComponentBase
- WidgetBase
- WidgetManager
- WildcardController
-
-
Controllers
-
Database
-
Facades
-
FilterWidgets
-
FormWidgets
-
Helpers
-
Models
-
BrandSetting
-
ExportModel
-
ImportModel
- AccessLog
- BrandSetting
- Dashboard
- EditorSetting
- ExportModel
- ImportModel
- Preference
- ReportDataCache
- User
- UserGroup
- UserPreference
- UserPreferenceModel
- UserRole
- UserThrottle
-
-
ReportWidgets
-
Skins
-
Traits
-
VueComponents
-
Widgets
-
Filter
-
Form
-
Lists
-
Table
- Filter
- Form
- Lists
- ListStructure
- ReportContainer
- RoleImpersonator
- Search
- SiteSwitcher
- Table
- Toolbar
-
- ServiceProvider
-
-
Cms
-
Classes
-
Controller
-
EditorExtension
-
Layout
-
Page
-
Partial
-
Theme
- AjaxResponse
- Asset
- CmsCompoundObject
- CmsController
- CmsDemoTrafficDataGenerator
- CmsException
- CmsObject
- CmsObjectCache
- CmsObjectCollection
- CmsReportDataSource
- CmsStatusDataSource
- CodeBase
- CodeParser
- ComponentBase
- ComponentBehavior
- ComponentHelpers
- ComponentManager
- ComponentModuleBase
- ComponentPartial
- Content
- Controller
- EditorExtension
- Layout
- LayoutCode
- Meta
- Page
- PageCode
- PageManager
- Partial
- PartialCode
- PartialStack
- PartialWatcher
- Router
- Snippet
- SnippetManager
- Theme
- ThemeManager
- ThisVariable
- TrafficLogger
-
-
Components
-
Console
-
Controllers
-
Database
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- AjaxPartialTokenParser
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- GetAttrAdjuster
- GetAttrNode
- Loader
- MetaNode
- MetaTokenParser
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
VueComponents
-
Widgets
- ServiceProvider
-
-
Editor
-
Behaviors
-
Classes
-
Controllers
-
Traits
-
VueComponents
- ServiceProvider
-
-
Media
-
Classes
-
Controllers
-
FormWidgets
-
Helpers
-
Twig
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
PresetManager
-
SiteManager
-
UiManager
-
UpdateManager
- AppBase
- CombineAssets
- DependencyResolver
- DriverBehavior
- ErrorHandler
- MailManager
- ManifestCache
- MarkupExtensionItem
- MarkupManager
- ModelBehavior
- PagerElement
- PluginBase
- PluginManager
- PresetManager
- ProductDetail
- RateLimiter
- ResizeImageItem
- ResizeImages
- SettingsManager
- SettingsMenuItem
- SiteManager
- SystemController
- SystemReportDataSource
- UiElement
- UiManager
- UpdateManager
- VersionManager
-
-
Console
- ComposerScript
- OctoberAbout
- OctoberDown
- OctoberFresh
- OctoberMigrate
- OctoberMirror
- OctoberOptimize
- OctoberPasswd
- OctoberUp
- OctoberUpdate
- OctoberUtil
- OctoberUtilCommands
- OctoberUtilPatches
- OctoberUtilRefitLang
- PluginCheck
- PluginDisable
- PluginEnable
- PluginInstall
- PluginList
- PluginRefresh
- PluginRemove
- PluginSeed
- PluginTest
- ProjectSync
-
Controllers
-
Database
-
Facades
-
Helpers
-
Middleware
-
Models
-
ReportWidgets
-
Traits
-
Twig
-
Widgets
- ServiceProvider
-
-
Tailor
-
Behaviors
-
Classes
-
Blueprint
-
BlueprintIndexer
-
EditorExtension
-
Relations
-
SchemaBuilder
-
Scopes
- Blueprint
- BlueprintCollection
- BlueprintErrorData
- BlueprintException
- BlueprintIndexer
- BlueprintModel
- BlueprintVerifier
- ComponentVariable
- ContentFieldBase
- EditorExtension
- FieldManager
- Fieldset
- NavigationItem
- PermissionItem
- RecordIndexer
- SchemaBuilder
- SchemaPruner
-
-
Components
-
Console
-
ContentFields
-
Controllers
-
Models
-
EntryRecord
-
GlobalRecord
-
RecordImport
- ContentSchema
- EntryRecord
- GlobalRecord
- NestedFormItem
- PreviewToken
- RecordExport
- RecordImport
- RepeaterItem
-
-
Traits
-
VueComponents
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
brand
-
files
-
filter
-
form
-
list
-
menu
-
page
-
roles
-
site
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
internalTrafficStatistics
-
object
-
page
-
pageLookup
-
resizer
-
router
-
sitePicker
-
template
-
theme
- extendTwig
-
-
deferredBinding
-
editor
-
extension
-
-
exception
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
auth
-
filter
-
form
-
relation
-
/docs/api/model/relation/add
-
/docs/api/model/relation/associate
- attach
-
/docs/api/model/relation/beforeadd
-
/docs/api/model/relation/beforeassociate
- beforeAttach
- beforeDetach
-
/docs/api/model/relation/beforedissociate
-
/docs/api/model/relation/beforeremove
- detach
-
/docs/api/model/relation/dissociate
-
/docs/api/model/relation/remove
-
-
/docs/api/model/afterboot
-
/docs/api/model/aftercreate
-
/docs/api/model/afterdelete
-
/docs/api/model/afterfetch
-
/docs/api/model/afterinit
- afterRelation
- afterRestore
-
/docs/api/model/aftersave
- afterTrash
-
/docs/api/model/afterupdate
- afterValidate
-
/docs/api/model/beforecreate
-
/docs/api/model/beforedelete
-
/docs/api/model/beforefetch
- beforeGetAttribute
- beforeRelation
- beforeReplicate
- beforeRestore
-
/docs/api/model/beforesave
- beforeSetAttribute
-
/docs/api/model/beforeupdate
- beforeValidate
- extendBlueprint
- getAttribute
- newInstance
- saveInternal
- setAttribute
-
-
pages
-
snippet
-
-
site
-
system
-
assets
- beforeAddAsset
-
/docs/api/system/assets/beforebundleasset
-
console
-
mirror
-
-
mail
-
reportwidgets
-
resizer
-
settings
-
site
-
updater
- extendConfigFile
- extendTwig
-
-
tailor
-
user
-
-
Library
-
Argon
-
Assetic
-
Asset
-
Cache
-
Exception
-
Factory
-
Filter
-
Traits
-
Util
- README
- AsseticServiceProvider
- AssetManager
- AssetWriter
- Combiner
- FilterManager
-
-
Auth
-
Combine
-
Composer
-
Config
-
Database
-
Attach
-
Concerns
-
Connections
-
Connectors
-
Factories
-
Models
-
Relations
-
Schema
-
Scopes
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- Dongle
- ExpandoModel
- MigrationServiceProvider
- Model
- ModelBehavior
- ModelException
- MorphPivot
- NestedTreeScope
- Pivot
- QueryBuilder
- Replicator
- SortableScope
- TreeCollection
- Updater
-
-
Element
-
Filter
-
Form
-
Lists
-
Navigation
- ElementBase
- ElementHolder
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
-
-
Halcyon
-
Concerns
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Resize
-
Router
-
Scaffold
-
Support
-
Debug
-
Facades
-
Traits
- README
- Arr
- ClassLoader
- Collection
- Facade
- ModuleServiceProvider
- SafeCollection
- ServiceProvider
- Singleton
- Str
-
-
Translation
-
Validation
-
- Documentation
- API
- Backend
- Classes
- ControllerBehavior
Backend\Classes\ControllerBehavior
Overview
ControllerBehavior base class
Extends
Public Properties
public string $assetPath
assetPath specifies the relative path to the asset directory.
public string $assetUrlPath
assetUrlPath specifies the public path to the asset directory.
public array $vars
vars is a list of variables to pass to the page
public string $layout
layout to use for the view
public bool $suppressLayout
suppressLayout prevents the use of a layout
Show inherited public properties
Inherited Public Properties
- $extendableStaticCalledClass - is the calling class when using a static method. (defined in October\Rain\Extension\ExtensionBase)
Protected Properties
protected object $config
config supplied.
protected Backend\Classes\Controller $controller
controller reference.
protected array $requiredProperties
requiredProperties that must exist in the controller using this behavior.
protected array $actions
actions visible in context of the controller. Only takes effect if it is an array
protected array $assets
Collection of assets to display in the layout.
protected array $assetBundles
Collection of combined and prioritized assets.
protected string $assetDefaults
assetDefaults is the default attributes for assets.
protected string $configPath
configPath specifies a path to the config directory.
protected string|array $viewPath
viewPath specifies a path to the views directory
protected string $layoutPath
layoutPath specifies a path to the layout directory
protected array $viewPathGuessCache
viewPathGuessCache remembers path guesses for performance.
Show inherited protected properties
Inherited Protected Properties
- $extensionHidden - are properties and methods that cannot be accessed. (defined in October\Rain\Extension\ExtensionBase)
Public Methods
public __construct()
public __construct($controller): void
__construct the behavior
public addCss()
public addCss($name, $attributes = []): void
addCss includes a StyleSheet asset to the asset list
public addCssBundle()
public addCssBundle($name, $attributes = []): void
addCssBundle includes a CSS asset to the bundled combiner pipeline
public addJs()
public addJs($name, $attributes = []): void
addJs includes a JavaScript asset to the asset list
public addJsBundle()
public addJsBundle($name, $attributes = []): void
addJsBundle includes a JS asset to the bundled combiner pipeline
public addRss()
public addRss($name, $attributes = []): void
addRss adds an RSS link asset to the asset list. Call $this->makeAssets() in a view to output corresponding markup.
public addViewPath()
public addViewPath(string|array $path, $append = false): void
addViewPath prepends a path on the available view path locations
public beforeDisplay()
public beforeDisplay(): void
beforeDisplay fires before the page is displayed and AJAX is executed.
public combineAssets()
public combineAssets($assets, $localPath = ''): string
combineAssets runs asset paths through the Asset Combiner
public flushAssets()
public flushAssets(): void
flushAssets disables the use, and subsequent broadcast, of assets. This is useful to call during an AJAX request to speed things up. This method works by specifically targeting the hasAssetsDefined method.
public getAssetPath()
public getAssetPath( string $fileName, string $assetPath = null ): string
getAssetPath locates a file based on it's definition. If the file starts with a forward slash, it will be returned in context of the application public path, otherwise it will be returned in context of the asset path.
public getAssetPaths()
public getAssetPaths(): array
getAssetPaths returns an array of all registered asset paths.
public getConfig()
public getConfig(string $name = null, mixed $default = null): string
getConfig is a safe accessor for configuration values
public getConfigPath()
public getConfigPath( string $fileName, mixed $configPath = null ): string
getConfigPath locates a file based on it's definition. If the file starts with the ~ symbol it will be returned in context of the application base path, otherwise it will be returned in context of the config path.
public getViewPath()
public getViewPath(string $fileName, mixed $viewPath = null): string
getViewPath locates a file based on its definition. The file name can be prefixed with a symbol (~|$) to return in context of the application or plugin base path, otherwise it will be returned in context of this object view path.
public getViewPaths()
public getViewPaths(): array
getViewPaths returns the active view path locations
public getWidget()
public getWidget($name): void
public guessConfigPath()
public guessConfigPath(string $suffix = ''): string
guessConfigPath guesses the package path for the called class.
public guessConfigPathFrom()
public guessConfigPathFrom(string $class, string $suffix = ''): string
guessConfigPathFrom guesses the package path from a specified class.
public guessViewPath()
public guessViewPath( string $suffix = '', bool $isPublic = false ): string
guessViewPath guesses the package path for the called class
public guessViewPathFrom()
public guessViewPathFrom( string $class, string $suffix = '', bool $isPublic = false ): string
guessViewPathFrom guesses the package path from a specified class, including an optional suffix to attach at the end, and the option to return a public path instead of a local one.
public hasAssetsDefined()
public hasAssetsDefined(): bool
hasAssetsDefined returns true if assets any have been added
public localMakeFileContents()
public localMakeFileContents( string $filePath, array $extraParams = [] ): string
makeFileContents includes a file path using output buffering
public makeAssets()
public makeAssets(string $type = null): string
makeAssets outputs <link>
and <script>
tags to load assets previously added with addJs and addCss method calls
public makeConfig()
public makeConfig( mixed $configFile = [], array $requiredConfig = [] ): object
makeConfig reads the contents of the supplied file and applies it to this object.
public makeConfigFromArray()
public makeConfigFromArray(array $configArray = []): stdClass
makeConfigFromArray makes a config object from an array, making the first level keys properties of a new object.
public makeFileContents()
public makeFileContents( string $filePath, array $extraParams = [] ): string
makeFileContents makes all views in context of the controller, not the behavior.
public makeFormWidget()
public makeFormWidget( string $class, mixed $fieldConfig = [], array $widgetConfig = [] ): Backend\Classes\FormWidgetBase
makeFormWidget object with the supplied form field and widget configuration.
public makeLayout()
public makeLayout( string $name = null, array $params = [], bool $throwException = true ): mixed
makeLayout renders a layout
public makeLayoutPartial()
public makeLayoutPartial(string $partial, array $params = []): string
makeLayoutPartial renders a layout partial
public makePartial()
public makePartial( string $partial, array $params = [], bool $throwException = true ): mixed
makePartial renders a partial file contents located in the views folder
public makeView()
public makeView(string $view): string
makeView loads a view with the name specified. Applies layout if its name is provided by the parent object. The view file must be situated in the views directory, and has the extension "htm" or "php"
public makeViewContent()
public makeViewContent( string $contents, string $layout = null ): string
makeViewContent renders supplied contents inside a layout
public makeWidget()
public makeWidget( string $class, array $widgetConfig = [] ): Backend\Classes\WidgetBase
makeWidget object with the supplied configuration file.
public mergeConfig()
public mergeConfig(mixed $configA, mixed $configB): stdClass
mergeConfig merges two configuration sources, either prepared or not, and returns them as a single configuration object.
public resetSession()
public resetSession(): void
Resets all session data related to this widget.
public setConfig()
public setConfig(mixed $config, array $required = []): void
setConfig sets the configuration values
Inherited Public Methods
- extend() - this class with a closure. (defined in October\Rain\Extension\ExtensionBase)
- extensionApplyInitCallbacks() - (defined in October\Rain\Extension\ExtensionBase)
- extensionExtendCallback() - is a helper method for
::extend()
static method. (defined in October\Rain\Extension\ExtensionBase) - extensionIsHiddenMethod() - (defined in October\Rain\Extension\ExtensionBase)
- extensionIsHiddenProperty() - (defined in October\Rain\Extension\ExtensionBase)
- getCalledExtensionClass() - (defined in October\Rain\Extension\ExtensionBase)
Protected Methods
protected combineBundledAssets()
protected combineBundledAssets($type): array
combineBundledAssets spins over every bundle definition and combines them to an asset
protected controllerMethodExists()
protected controllerMethodExists($methodName): void
protected getAssetEntryBuildPath()
protected getAssetEntryBuildPath(array $asset): string
Internal helper, attaches a build code to an asset path
protected getAssetScheme()
protected getAssetScheme($asset): string
getAssetScheme is an internal helper to get the asset scheme.
protected getConfigValueFrom()
protected getConfigValueFrom($configObj, $name = null, $default = null): void
getConfigValueFrom will apply the config getter convention
protected getLocalPath()
protected getLocalPath($relativePath): string
getLocalPath converts a relative path to a local path
protected getSession()
protected getSession( string $key = null, string $default = null ): string
Retrieves a widget related key/value pair from session data.
protected handleViewException()
protected handleViewException($e, $obLevel): void
handleViewException handles a view exception
protected hideAction()
protected hideAction(mixed $methodName): void
hideAction protects a public method from being available as an controller action. These methods could be defined in a controller to override a behavior default action. Such methods should be defined as public, to allow the behavior object to access it. By default public methods of a controller are considered as actions. To prevent this occurrence, methods should be hidden by using this method.
protected makeSessionId()
protected makeSessionId(): string
Returns a unique session identifier for this widget and controller action.
protected processAssetAttributes()
protected processAssetAttributes($attributes): void
protected putSession()
protected putSession(string $key, string $value): void
Saves a widget related key/value pair in to session data.
protected removeDuplicateAssets()
protected removeDuplicateAssets(): void
removeDuplicateAssets removes duplicate and global assets from the entire collection
protected renderAssetAttributes()
protected renderAssetAttributes($type, $asset): string
renderAssetAttributes takes an asset definition and returns the necessary HTML output
Show inherited protected methods
Inherited Protected Methods
- extensionHideMethod() - (defined in October\Rain\Extension\ExtensionBase)
- extensionHideProperty() - (defined in October\Rain\Extension\ExtensionBase)