-
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
- Library
- Extension
- Extendable
October\Rain\Extension\Extendable
Overview
Extendable class
If a class extends this class, it will enable support for using "Private traits".
Usage:
public $implement = [\Path\To\Some\Namespace\Class::class];
See the ExtensionBase
class for creating extension classes.
Public Properties
public array $implement
implement extensions for this class.
Protected Properties
protected array $extensionData
extensionData contains class reflection information, including behaviors
protected static array $extendableStaticMethods
extendableStaticMethods is a collection of static methods used by behaviors
protected static bool $extendableGuardProperties
extendableGuardProperties indicates if dynamic properties can be created
Public Methods
public __call()
public __call($name, $params): void
__call calls an undefined local method
public static __callStatic()
public static __callStatic($name, $params): void
__callStatic calls an undefined static method
public __construct()
public __construct(): void
__construct the extendable class
public __get()
public __get($name): void
__get an undefined property
public __set()
public __set($name, $value): void
__set an undefined property
public __sleep()
public __sleep(): void
__sleep prepare the object for serialization.
public __wakeup()
public __wakeup(): void
__wakeup when a model is being unserialized, check if it needs to be booted.
public addDynamicMethod()
public addDynamicMethod( string $dynamicName, callable $method, string $extension = null ): void
addDynamicMethod programmatically adds a method to the extendable class
public addDynamicProperty()
public addDynamicProperty(string $dynamicName, string $value = null): void
addDynamicProperty programmatically adds a property to the extendable class
public asExtension()
public asExtension(string $shortName): mixed
asExtension is short hand for getClassExtension()
method, except takes the short
extension name, example:
$this->asExtension('FormController')
public static clearExtendedClasses()
public static clearExtendedClasses(): void
public static extend()
public static extend($callback): void
extend this class with a closure
public extendClassWith()
public extendClassWith(string $extensionName): void
extendClassWith dynamically extends a class with a specified behavior
public extendableCall()
public extendableCall(string $name, array $params = null): mixed
extendableCall magic method for __call()
public static extendableCallStatic()
public static extendableCallStatic( string $name, array $params = null ): mixed
extendableCallStatic magic method for __callStatic()
public extendableConstruct()
public extendableConstruct(): void
extendableConstruct should be called as part of the constructor
public extendableDestruct()
public extendableDestruct(): void
extendableDestruct should be called when serializing the object
public static extendableExtendCallback()
public static extendableExtendCallback(callable $callback): void
extendableExtendCallback is a helper method for ::extend()
static method
public extendableGet()
public extendableGet(string $name): string
extendableGet magic method for __get()
public extendableSet()
public extendableSet(string $name, string $value): string
extendableSet magic method for __set()
public getClassExtension()
public getClassExtension(string $name): mixed
getClassExtension returns a behavior object from an extendable class, example:
$this->getClassExtension('Backend.Behaviors.FormController')
public getClassMethodAsReflector()
public getClassMethodAsReflector($name): ReflectionFunctionAbstract
public getClassMethods()
public getClassMethods(): array
getClassMethods gets a list of class methods, extension equivalent of get_class_methods()
public getDynamicProperties()
public getDynamicProperties(): array
getDynamicProperties returns all dynamic properties and their values
public implementClassWith()
public implementClassWith($extensionName): void
implementClassWith will implement an extension using non-interference and should be used with the static extend() method.
public isClassExtendedWith()
public isClassExtendedWith(string $name): boolean
isClassExtendedWith checks if extendable class is extended with a behavior object
public isClassInstanceOf()
public isClassInstanceOf($interface): bool
isClassInstanceOf checks if the class implements the supplied interface methods.
public methodExists()
public methodExists(string $name): boolean
methodExists checks if a method exists, extension equivalent of method_exists()
public propertyExists()
public propertyExists(string $name): boolean
propertyExists checks if a property exists, extension equivalent of property_exists()
Protected Methods
protected extendableIsAccessible()
protected extendableIsAccessible( mixed $class, string $propertyName ): boolean
extendableIsAccessible checks if a property is accessible, property equivalent
of is_callable()
protected extendableIsSettingDynamicProperty()
protected extendableIsSettingDynamicProperty(): bool
extendableIsSettingDynamicProperty returns true if a dynamic property action is taking place
protected extensionExtractImplements()
protected extensionExtractImplements(): array
extensionExtractImplements will return classes to implement.
protected extensionExtractMethods()
protected extensionExtractMethods( string $extensionName, object $extensionObject ): void
extensionExtractMethods extracts the available methods from a behavior and adds it to the list of callable methods
protected getExtendableMethodFromDynamicMethods()
protected getExtendableMethodFromDynamicMethods($name): callable|null
protected getExtendableMethodFromExtensions()
protected getExtendableMethodFromExtensions($name): array|null