-
Docs
Backend
-
Behaviors
-
Classes
-
Controllers
-
Database
-
Seeds
-
-
Facades
-
FormWidgets
-
Helpers
-
Exception
- Backend
-
-
Models
-
ReportWidgets
-
Skins
-
Traits
-
Widgets
- ServiceProvider
-
-
Cms
-
Classes
- Asset
- AutoDatasource
- CmsCompoundObject
- CmsController
- CmsException
- CmsObject
- CmsObjectCollection
- CodeBase
- CodeParser
- ComponentBase
- ComponentHelpers
- ComponentManager
- ComponentPartial
- Content
- Controller
- Layout
- LayoutCode
- MediaLibrary
- MediaLibraryItem
- MediaViewHelper
- Meta
- ObjectMemoryCache
- Page
- PageCode
- Partial
- PartialCode
- PartialStack
- Router
- Theme
- ThemeManager
-
Components
-
Contracts
-
Controllers
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- Loader
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
Console
-
Controllers
-
Database
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
filter
-
form
-
list
-
menu
-
page
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
object
-
page
-
router
-
template
-
theme
-
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
system
-
assets
-
console
-
mirror
-
theme
-
-
reportwidgets
-
settings
- extendConfigFile
-
-
translator
-
-
Library
-
Argon
-
Auth
-
Models
- AuthException
- Manager
-
-
Config
-
Cookie
-
Middleware
-
-
Database
-
Attach
-
Behaviors
-
Concerns
-
Connections
-
Connectors
-
Models
-
Relations
-
Schema
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- DataFeed
- Dongle
- MemoryCache
- Model
- ModelBehavior
- ModelException
- NestedTreeScope
- Pivot
- QueryBuilder
- SortableScope
- TreeCollection
- Updater
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
- Maker
-
-
Halcyon
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- MemoryCacheManager
- MemoryRepository
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Router
-
Scaffold
-
Support
-
Translation
-
- Documentation
- API
- Backend
- Classes
- FilterScope
Backend\Classes\FilterScope
Source: ~/modules/backend/classes/FilterScope.php
Filter scope definition A translation of the filter scope configuration
Public properties
public string $scopeName
Scope name.
public string $idPrefix
A prefix to the field identifier so it can be totally unique.
public string $nameFrom
Column to display for the display name
public string $descriptionFrom
Column to display for the description (optional)
public string $label
Filter scope label.
public string $value
Filter scope value.
public string $type
Filter mode.
public string $options
Filter options.
public array $dependsOn
Other scope names this scope depends on, when the other scopes are modified, this scope will update.
public string $context
Specifies contextual visibility of this form scope.
public bool $disabled
Specify if the scope is disabled or not.
public string $defaults
Specifies a default value for supported scopes.
public string $conditions
Raw SQL conditions to use when applying this scope.
public string $scope
Model scope method to use when applying this filter scope.
public string $cssClass
Specifies a CSS class to attach to the scope container.
public array $config
Raw scope configuration.
Public methods
public void __construct($scopeName, $label)
Parameters
- $scopeName
- $label
public void displayAs(string $type, array $config=array())
Specifies a scope control rendering mode. Supported modes are:
- group - filter by a group of IDs. Default.
- checkbox - filter by a simple toggle switch.
Parameters
- string $type - Specifies a render mode as described above
- array $config - A list of render mode specific config.
public void getId($suffix=NULL)
Returns a value suitable for the scope id property.
Parameters
- $suffix
Protected methods
protected array evalConfig(array $config)
Process options and apply them to this object.
Parameters
- array $config