-
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
- Cms
- Components
- ViewBag
Cms\Components\ViewBag
Source: ~/modules/cms/components/ViewBag.php
Extends:
The view bag stores custom template properties. This is a hidden component ignored by the back-end UI.
Public properties
public boolean $isHidden
This component is hidden from the back-end UI.
Show inherited public properties
Inherited public properties
- public string $id - defined in Cms\Classes\ComponentBase. A unique identifier for this component.
- public string $alias - defined in Cms\Classes\ComponentBase. Alias used for this component.
- public string $name - defined in Cms\Classes\ComponentBase. Component class name or class alias used in the component declaration in a template.
- public string $pluginIcon - defined in Cms\Classes\ComponentBase. Icon of the plugin that defines the component.
- public string $componentCssClass - defined in Cms\Classes\ComponentBase. Component CSS class name for the back-end page/layout component list.
- public boolean $inspectorEnabled - defined in Cms\Classes\ComponentBase. Determines whether Inspector can be used with the component.
- public array $implement - defined in October\Rain\Extension\Extendable. Extensions implemented by this class.
- public string $assetPath - defined in Cms\Classes\ComponentBase. Specifies a path to the asset directory.
Protected properties
There are no protected properties in the class.
Show inherited protected properties
Inherited protected properties
- protected string $dirName - defined in Cms\Classes\ComponentBase. Specifies the component directory name.
- protected Cms\Classes\Controller $controller - defined in Cms\Classes\ComponentBase. Controller object.
- protected Cms\Classes\PageCode $page - defined in Cms\Classes\ComponentBase. Page object object.
- protected array $externalPropertyNames - defined in Cms\Classes\ComponentBase. A collection of external property names used by this component.
- protected array $extensionData - defined in October\Rain\Extension\Extendable. Class reflection information, including behaviors.
- protected static array $extendableCallbacks - defined in October\Rain\Extension\Extendable. Used to extend the constructor of an extendable class.
- protected static array $extendableStaticMethods - defined in October\Rain\Extension\Extendable. Collection of static methods used by behaviors.
- protected static bool $extendableGuardProperties - defined in October\Rain\Extension\Extendable. Indicates if dynamic properties can be created.
- protected array $assets - defined in Cms\Classes\ComponentBase. Collection of assets to display in the layout.
- protected array $emitterSingleEventCollection - defined in Cms\Classes\ComponentBase. Collection of registered events to be fired once only.
- protected array $emitterEventCollection - defined in Cms\Classes\ComponentBase. Collection of registered events.
- protected array $emitterEventSorted - defined in Cms\Classes\ComponentBase. Sorted collection of events.
- protected array $properties - defined in Cms\Classes\ComponentBase. Contains the object property values.
Public methods
public void __get(string $name)
Implements the getter functionality.
Parameters
- string $name
public bool __isset(string $key)
Determine if an attribute exists on the object.
Parameters
- string $key
public array componentDetails()
Returns information about this component, including name and description.
public array defineProperties()
Defines the properties used by this class. This method should be used as an override in the extended class.
public array validateProperties(array $properties)
Validates the properties against the defined properties of the class. This method also sets default properties.
Parameters
- array $properties
Inherited public methods
- public mixed __call(string $method, array $parameters) - defined in Cms\Classes\ComponentBase. Dynamically handle calls into the controller instance.
- public static void __callStatic($name, $params) - defined in October\Rain\Extension\Extendable.
- public void __construct(null|CodeBase $cmsObject=NULL, array $properties=array()) - defined in Cms\Classes\ComponentBase. Component constructor. Takes in the page or layout code section object.
- public void __set($name, $value) - defined in October\Rain\Extension\Extendable.
- public void __toString() - defined in Cms\Classes\ComponentBase. Returns the component's alias, used by SELF.
- public void addCss(string $name, array $attributes=array()) - defined in Cms\Classes\ComponentBase. Adds StyleSheet asset to the asset list. Call $this->makeAssets() in a view.
- 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(string $name, array $attributes=array()) - defined in Cms\Classes\ComponentBase. Adds JavaScript asset to the asset list. Call $this->makeAssets() in a view.
- public void addRss(string $name, array $attributes=array()) - defined in Cms\Classes\ComponentBase. Adds an RSS link asset to the asset list. Call $this->makeAssets() in a view.
- public mixed asExtension(string $shortName) - defined in October\Rain\Extension\Extendable. Short hand for
getClassExtension()
method, except takes the short. - public self bindEvent($event, $callback, $priority=0) - defined in Cms\Classes\ComponentBase. Create a new event binding.
- public self bindEventOnce($event, $callback) - defined in Cms\Classes\ComponentBase. 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 string combineAssets(array $assets, string $localPath='') - defined in Cms\Classes\ComponentBase. Run the provided assets 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. This method should be called as part of the constructor.
- public static void extendableExtendCallback(callable $callback) - defined in October\Rain\Extension\Extendable. 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 Cms\Classes\ComponentBase. Fire an event and call the listeners.
- public mixed fireSystemEvent(string $event, array $params=array(), boolean $halt=true) - defined in Cms\Classes\ComponentBase. Fires a combination of local and global events. The first segment is removed.
- public string fireViewEvent(string $event, array $params=array()) - defined in Cms\Classes\ComponentBase. Special event function used for extending within view files,
- public void flushAssets() - defined in Cms\Classes\ComponentBase. Disables the use, and subequent broadcast, of assets. This is useful.
- public string getAssetPath(string $fileName, string $assetPath=NULL) - defined in Cms\Classes\ComponentBase. Locates a file based on it's definition. If the file starts with.
- public array getAssetPaths() - defined in Cms\Classes\ComponentBase. 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 array getDynamicProperties() - defined in October\Rain\Extension\Extendable. Returns all dynamic properties and their values.
- public void getPath() - defined in Cms\Classes\ComponentBase. Returns the absolute component path.
- public array getProperties() - defined in Cms\Classes\ComponentBase. Returns all properties.
- public array getPropertyOptions(string $property) - defined in Cms\Classes\ComponentBase. Returns options for multi-option properties (drop-downs, etc.).
- public bool hasAssetsDefined() - defined in Cms\Classes\ComponentBase. Returns true if assets any have been added.
- public void init() - defined in Cms\Classes\ComponentBase. Executed when this component is first initialized, before AJAX requests.
- public boolean isClassExtendedWith(string $name) - defined in October\Rain\Extension\Extendable. Check if extendable class is extended with a behavior object.
- public string makeAssets(string $type=NULL) - defined in Cms\Classes\ComponentBase. Outputs
<link>
and<script>
tags to load assets previously added with addJs and addCss method calls. - public boolean methodExists(string $name) - defined in October\Rain\Extension\Extendable. Checks if a method exists, extension equivalent of method_exists().
- public void onRender() - defined in Cms\Classes\ComponentBase. Executed when this component is rendered on a page or layout.
- public void onRun() - defined in Cms\Classes\ComponentBase. Executed when this component is bound to a page or layout, part of.
- public string paramName(string $name, mixed $default=NULL) - defined in Cms\Classes\ComponentBase. Returns the external property name when the property value is a routing parameter reference.
- public string property(string $name, string $default=NULL) - defined in Cms\Classes\ComponentBase. Returns a defined property value or default if one is not set.
- public boolean propertyExists(string $name) - defined in October\Rain\Extension\Extendable. Checks if a property exists, extension equivalent of
property_exists()
. - public string propertyName(string $name, mixed $default=NULL) - defined in Cms\Classes\ComponentBase. Returns the external property name when the property value is an external property reference.
- public void renderPartial() - defined in Cms\Classes\ComponentBase. Renders a requested partial in context of this component,
- public boolean runAjaxHandler($handler) - defined in Cms\Classes\ComponentBase. Executes the event cycle when running an AJAX handler.
- public string setExternalPropertyName(string $name, string $extName) - defined in Cms\Classes\ComponentBase. Sets an external property name.
- public void setExternalPropertyNames(array $names) - defined in Cms\Classes\ComponentBase. Sets names used by external properties.
- public void setProperties(array $properties) - defined in Cms\Classes\ComponentBase. Sets multiple properties.
- public void setProperty(string $name, mixed $value) - defined in Cms\Classes\ComponentBase. Sets a property value.
- public self unbindEvent(string $event=NULL) - defined in Cms\Classes\ComponentBase. Destroys an event binding.
Protected methods
Show inherited protected methods
Inherited protected methods
- protected void addAsset(string $type, string $path, array $attributes) - defined in Cms\Classes\ComponentBase. Adds the provided asset to the internal asset collections.
- protected array emitterEventSortEvents(string $eventName) - defined in Cms\Classes\ComponentBase. Sort the listeners for a given event by priority.
- 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 Cms\Classes\ComponentBase. Internal helper, attaches a build code to an asset path.
- protected string getAssetScheme(string $asset) - defined in Cms\Classes\ComponentBase. Internal helper, get asset scheme.
- protected void getLocalPath($relativePath) - defined in Cms\Classes\ComponentBase.
- protected void removeDuplicates() - defined in Cms\Classes\ComponentBase. Removes duplicate assets from the entire collection.