-
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
- Classes
- Partial
Cms\Classes\Partial
Source: ~/modules/cms/classes/Partial.php
Extends:
- Cms\Classes\CmsCompoundObject
- Cms\Classes\CmsObject
- October\Rain\Halcyon\Model
- October\Rain\Extension\Extendable
Implements:
- JsonSerializable
- Illuminate\Contracts\Support\Jsonable
- Illuminate\Contracts\Support\Arrayable
- ArrayAccess
- Cms\Contracts\CmsObject
The CMS partial class.
Public properties
There are no public properties in the class.
Show inherited public properties
Inherited public properties
- public array $components - defined in Cms\Classes\CmsCompoundObject. Initialized components defined in the template file.
- public array $settings - defined in Cms\Classes\CmsCompoundObject. INI settings defined in the template file.
- public array $viewBag - defined in Cms\Classes\CmsCompoundObject. Contains the view bag properties.
- public array $rules - defined in Cms\Classes\CmsObject. The rules to be applied to the data.
- public array $attributeNames - defined in Cms\Classes\CmsObject. The array of custom attribute names.
- public array $customMessages - defined in Cms\Classes\CmsObject. The array of custom error messages.
- public array $attributes - defined in October\Rain\Halcyon\Model. The model's attributes, saved to the settings area.
- public bool $exists - defined in October\Rain\Halcyon\Model. Indicates if the model exists.
- public array $implement - defined in October\Rain\Extension\Extendable. Extensions implemented by this class.
Protected properties
protected string $dirName
The container name associated with the model, eg: pages.
Show inherited protected properties
Inherited protected properties
- protected array $fillable - defined in Cms\Classes\CmsCompoundObject. The attributes that are mass assignable.
- protected array $passthru - defined in Cms\Classes\CmsCompoundObject. The methods that should be returned from the collection of all objects.
- protected bool $isCompoundObject - defined in Cms\Classes\CmsCompoundObject. Model supports code and settings sections.
- protected static array|null $objectComponentPropertyMap - defined in Cms\Classes\CmsCompoundObject. Cache for component properties.
- protected mixed $viewBagCache - defined in Cms\Classes\CmsCompoundObject. Cache store for the getViewBag method.
- protected Cms\Classes\Theme $themeCache - defined in Cms\Classes\CmsObject. A reference to the CMS theme containing the object.
- protected string $datasource - defined in October\Rain\Halcyon\Model. The data source for the model, a directory path.
- protected array $original - defined in October\Rain\Halcyon\Model. The model attribute's original state.
- protected array $appends - defined in October\Rain\Halcyon\Model. The accessors to append to the model's array form.
- protected array $purgeable - defined in October\Rain\Halcyon\Model. List of attribute names which are not considered "settings".
- protected array $allowedExtensions - defined in October\Rain\Halcyon\Model. Allowable file extensions.
- protected string $defaultExtension - defined in October\Rain\Halcyon\Model. Default file extension.
- protected bool $wrapCode - defined in October\Rain\Halcyon\Model. Wrap code section in PHP tags.
- protected int $maxNesting - defined in October\Rain\Halcyon\Model. The maximum allowed path nesting level.
- protected boolean $loadedFromCache - defined in October\Rain\Halcyon\Model. Indicated whether the object was loaded from the cache.
- protected array $observables - defined in October\Rain\Halcyon\Model. User exposed observable events.
- protected static Illuminate\Cache\CacheManager $cache - defined in October\Rain\Halcyon\Model. The cache manager instance.
- protected static October\Rain\Halcyon\Datasource\ResolverInterface $resolver - defined in October\Rain\Halcyon\Model. The datasource resolver instance.
- protected static Illuminate\Contracts\Events\Dispatcher $dispatcher - defined in October\Rain\Halcyon\Model. The event dispatcher instance.
- protected static array $mutatorCache - defined in October\Rain\Halcyon\Model. The cache of the mutated attributes for each class.
- protected static array $eventsBooted - defined in October\Rain\Halcyon\Model. The array of models booted events.
- protected static array $booted - defined in October\Rain\Halcyon\Model. The array of booted models.
- 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 $emitterSingleEventCollection - defined in October\Rain\Halcyon\Model. Collection of registered events to be fired once only.
- protected array $emitterEventCollection - defined in October\Rain\Halcyon\Model. Collection of registered events.
- protected array $emitterEventSorted - defined in October\Rain\Halcyon\Model. Sorted collection of events.
- protected Illuminate\Support\MessageBag $validationErrors - defined in Cms\Classes\CmsObject. The message bag instance containing validation error messages.
- protected static Illuminate\Validation\Validator $validator - defined in Cms\Classes\CmsObject. The validator instance.
Public methods
public string getCodeClassParent()
Returns name of a PHP class to us a parent for the PHP class created for the object's PHP section.
Inherited public methods
- public mixed __call(string $method, array $parameters) - defined in Cms\Classes\CmsCompoundObject. Dynamically handle calls into the query instance.
- public static mixed __callStatic(string $method, array $parameters) - defined in October\Rain\Halcyon\Model. Handle dynamic static method calls into the method.
- public void __construct(array $attributes=array()) - defined in October\Rain\Halcyon\Model. Create a new Halcyon model instance.
- public void __get($name) - defined in Cms\Classes\CmsCompoundObject. Implements getter functionality for visible properties defined in.
- public bool __isset(string $key) - defined in Cms\Classes\CmsCompoundObject. Determine if an attribute exists on the object.
- public void __set(string $key, mixed $value) - defined in Cms\Classes\CmsCompoundObject. Dynamically set attributes on the model.
- public string __toString() - defined in October\Rain\Halcyon\Model. Convert the model to its string representation.
- public void __unset(string $key) - defined in October\Rain\Halcyon\Model. Unset an attribute on the model.
- 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 addObservableEvents(array|mixed $observables) - defined in October\Rain\Halcyon\Model. Add an observable event name.
- public $this addPurgeable(array|string|null $attributes=NULL) - defined in October\Rain\Halcyon\Model. Adds an attribute to the purgeable attributes list.
- public void afterFetch() - defined in Cms\Classes\CmsCompoundObject. Triggered after the object is loaded.
- public static October\Rain\Halcyon\Collection|static[] all() - defined in October\Rain\Halcyon\Model. Get all of the models from the datasource.
- public mixed asExtension(string $shortName) - defined in October\Rain\Extension\Extendable. Short hand for
getClassExtension()
method, except takes the short. - public array attributesToArray() - defined in October\Rain\Halcyon\Model. Convert the model's attributes to an array.
- public void beforeSave() - defined in Cms\Classes\CmsCompoundObject. Triggered when the model is saved.
- public self bindEvent($event, $callback, $priority=0) - defined in October\Rain\Halcyon\Model. Create a new event binding.
- public self bindEventOnce($event, $callback) - defined in October\Rain\Halcyon\Model. Create a new event binding that fires once only.
- public static void bootValidation() - defined in Cms\Classes\CmsObject. Boot the validation trait for this model.
- public static void cacheMutatedAttributes(string $class) - defined in October\Rain\Halcyon\Model. Extract and cache all the mutated attributes of a class.
- public static void clearBootedModels() - defined in October\Rain\Halcyon\Model. Clear the list of booted models so they will be re-booted.
- public static void clearCache(Cms\Classes\Theme $theme) - defined in Cms\Classes\CmsCompoundObject. Clears the object cache.
- public static void clearExtendedClasses() - defined in October\Rain\Extension\Extendable. Clear the list of extended classes so they will be re-extended.
- public static static create(array $attributes=array()) - defined in October\Rain\Halcyon\Model. Save a new model and return the instance.
- public static void created(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a created model event with the dispatcher.
- public static void creating(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a creating model event with the dispatcher.
- public bool|null delete() - defined in October\Rain\Halcyon\Model. Delete the model from the database.
- public static void deleted(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a deleted model event with the dispatcher.
- public static void deleting(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a deleting model event with the dispatcher.
- public Illuminate\Support\MessageBag errors() - defined in Cms\Classes\CmsObject. Get validation error message collection for the Model.
- 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 static void fetched(Closure|string $callback) - defined in October\Rain\Halcyon\Model. Create a new native event for handling afterFetch().
- public static void fetching(Closure|string $callback) - defined in October\Rain\Halcyon\Model. Create a new native event for handling beforeFetch().
- public $this fill(array $attributes) - defined in October\Rain\Halcyon\Model. Fill the model with an array of attributes.
- public array fireEvent(string $event, array $params=array(), boolean $halt=false) - defined in October\Rain\Halcyon\Model. Fire an event and call the listeners.
- public static void flushEventListeners() - defined in October\Rain\Halcyon\Model. Remove all of the event listeners for the model.
- public bool forceSave($options=NULL) - defined in Cms\Classes\CmsObject. Force save the model even if validation fails.
- public array getAllowedExtensions() - defined in October\Rain\Halcyon\Model. Returns the allowable file extensions supported by this model.
- public mixed getAttribute(string $key) - defined in October\Rain\Halcyon\Model. Get a plain attribute.
- public array getAttributes() - defined in October\Rain\Halcyon\Model. Get all of the current attributes on the model.
- public string getBaseFileName() - defined in Cms\Classes\CmsObject. Returns the file name without the extension.
- public string getBaseFileNameAttribute() - defined in October\Rain\Halcyon\Model. Returns the file name without the extension.
- public static Illuminate\Cache\CacheManager getCacheManager() - defined in October\Rain\Halcyon\Model. Get the cache manager instance.
- 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 Cms\Classes\ComponentBase getComponent(string $componentName) - defined in Cms\Classes\CmsCompoundObject. Returns a component by its name.
- public array getComponentProperties(string $componentName) - defined in Cms\Classes\CmsCompoundObject. Returns component property names and values.
- public string getContent() - defined in Cms\Classes\CmsObject. Returns the file content.
- public October\Rain\Halcyon\Datasource getDatasource() - defined in October\Rain\Halcyon\Model. Get the datasource for the model.
- public string getDatasourceName() - defined in October\Rain\Halcyon\Model. Get the current datasource name for the model.
- public static October\Rain\Halcyon\DatasourceResolverInterface getDatasourceResolver() - defined in October\Rain\Halcyon\Model. Get the datasource resolver instance.
- public array getDirty() - defined in October\Rain\Halcyon\Model. Get the attributes that have been changed since last sync.
- public array getDynamicProperties() - defined in October\Rain\Extension\Extendable. Returns all dynamic properties and their values.
- public static Illuminate\Contracts\Events\Dispatcher getEventDispatcher() - defined in October\Rain\Halcyon\Model. Get the event dispatcher instance.
- public string getFileName() - defined in Cms\Classes\CmsObject. Returns the file name.
- public void getFileNameParts($fileName=NULL) - defined in October\Rain\Halcyon\Model. Returns the base file name and extension. Applies a default extension, if none found.
- public string getFilePath(string $fileName=NULL) - defined in Cms\Classes\CmsObject. Returns the full path to the template file corresponding to this object.
- public string getId() - defined in Cms\Classes\CmsObject. Helper for {{ page.id }} or {{ layout.id }} twig vars.
- public string getIdAttribute() - defined in October\Rain\Halcyon\Model. Helper for {{ page.id }} or {{ layout.id }} twig vars.
- public int getMaxNesting() - defined in October\Rain\Halcyon\Model. Returns the maximum directory nesting allowed by this template.
- public static Illuminate\Validation\Validator getModelValidator() - defined in Cms\Classes\CmsObject. Get the validator instance.
- public array getMutatedAttributes() - defined in October\Rain\Halcyon\Model. Get the mutated attributes for a given instance.
- public string getObjectTypeDirName() - defined in October\Rain\Halcyon\Model. Returns the directory name corresponding to the object type.
- public array getObservableEvents() - defined in October\Rain\Halcyon\Model. Get the observable event names.
- public array getOriginal(string|null $key=NULL, mixed $default=NULL) - defined in October\Rain\Halcyon\Model. Get the model's original attribute values.
- public array getSettingsAttribute() - defined in October\Rain\Halcyon\Model. The settings is attribute contains everything that should.
- public Cms\Classes\Theme getThemeAttribute() - defined in Cms\Classes\CmsObject. Returns the CMS theme this object belongs to.
- public string getTwigCacheKey() - defined in Cms\Classes\CmsObject. Returns the key used by the Twig cache.
- public string getTwigContent() - defined in Cms\Classes\CmsCompoundObject. Returns the Twig content string.
- public Twig\Node\ModuleNode getTwigNodeTree(mixed $markup=false) - defined in Cms\Classes\CmsCompoundObject. Returns Twig node tree generated from the object's markup.
- public Cms\Components\ViewBag getViewBag() - defined in Cms\Classes\CmsCompoundObject. Returns the configured view bag component.
- public bool getWrapCode() - defined in October\Rain\Halcyon\Model. Returns true if the code section will be wrapped in PHP tags.
- public mixed hasComponent(string $componentName) - defined in Cms\Classes\CmsCompoundObject. Checks if the object has a component with the specified name.
- public bool hasGetMutator(string $key) - defined in October\Rain\Halcyon\Model. Determine if a get mutator exists for an attribute.
- public bool hasSetMutator(string $key) - defined in October\Rain\Halcyon\Model. Determine if a set mutator exists for an attribute.
- public static October\Rain\Halcyon\Collection hydrate(array $items, string|null $datasource=NULL) - defined in October\Rain\Halcyon\Model. Create a collection of models from plain arrays.
- public static $this inTheme(Cms\Classes\Theme $theme) - defined in Cms\Classes\CmsObject. Prepares the theme datasource for the model.
- public static void initCacheItem(array &$cached) - defined in October\Rain\Halcyon\Model. Initializes the object properties from the cached data. The extra data.
- public boolean isAttributeRequired(string $attribute) - defined in Cms\Classes\CmsObject. Determines if an attribute is required based on the validation rules.
- public boolean isClassExtendedWith(string $name) - defined in October\Rain\Extension\Extendable. Check if extendable class is extended with a behavior object.
- public bool isCompoundObject() - defined in October\Rain\Halcyon\Model. Returns true if this template supports code and settings sections.
- public bool isDirty(array|string|null $attributes=NULL) - defined in October\Rain\Halcyon\Model. Determine if the model or given attribute(s) have been modified.
- public bool isFillable(string $key) - defined in October\Rain\Halcyon\Model. Determine if the given attribute may be mass assigned.
- public boolean isLoadedFromCache() - defined in October\Rain\Halcyon\Model. Returns true if the object was loaded from the cache.
- public array jsonSerialize() - defined in October\Rain\Halcyon\Model. Convert the object into something JSON serializable.
- public static Collection listInTheme(Cms\Classes\Theme $theme, boolean $skipCache=false) - defined in Cms\Classes\CmsObject. Returns the list of objects in the specified theme.
- public static mixed load(mixed $theme, string $fileName) - defined in Cms\Classes\CmsObject. Loads the object from a file.
- public static mixed loadCached(Cms\Classes\Theme $theme, string $fileName) - defined in Cms\Classes\CmsObject. Loads the object from a cache.
- public boolean methodExists(string $name) - defined in October\Rain\Extension\Extendable. Checks if a method exists, extension equivalent of method_exists().
- public October\Rain\Halcyon\Collection newCollection(array $models=array()) - defined in Cms\Classes\CmsCompoundObject. Create a new Collection instance.
- public static newFromBuilder(array $attributes=array(), string|null $datasource=NULL) - defined in October\Rain\Halcyon\Model. Create a new model instance that is existing.
- public static newInstance(array $attributes=array(), bool $exists=false) - defined in October\Rain\Halcyon\Model. Create a new instance of the given model.
- public October\Rain\Halcyon\Builder newQuery() - defined in October\Rain\Halcyon\Model. Get a new query builder for the object.
- public bool offsetExists(mixed $offset) - defined in October\Rain\Halcyon\Model. Determine if the given attribute exists.
- public mixed offsetGet(mixed $offset) - defined in October\Rain\Halcyon\Model. Get the value for a given offset.
- public void offsetSet(mixed $offset, mixed $value) - defined in October\Rain\Halcyon\Model. Set the value for a given offset.
- public void offsetUnset(mixed $offset) - defined in October\Rain\Halcyon\Model. Unset the value for a given offset.
- public static October\Rain\Halcyon\Model on(string|null $datasource=NULL) - defined in October\Rain\Halcyon\Model. Begin querying the model on a given datasource.
- public boolean propertyExists(string $name) - defined in October\Rain\Extension\Extendable. Checks if a property exists, extension equivalent of
property_exists()
. - public static October\Rain\Halcyon\Builder query() - defined in October\Rain\Halcyon\Model. Begin querying the model.
- public void removeObservableEvents(array|mixed $observables) - defined in October\Rain\Halcyon\Model. Remove an observable event name.
- public static October\Rain\Halcyon\Datasource resolveDatasource(string|null $datasource=NULL) - defined in October\Rain\Halcyon\Model. Resolve a datasource instance.
- public void runComponents() - defined in Cms\Classes\CmsCompoundObject. Runs components defined in the settings.
- public bool save(array $options=NULL) - defined in Cms\Classes\CmsObject. Save the object to the theme.
- public bool saveInternal(array $options=array()) - defined in October\Rain\Halcyon\Model. Save the model to the database. Is used by {@link save()} and {@link forceSave()}.
- public static void saved(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a saved model event with the dispatcher.
- public static void saving(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a saving model event with the dispatcher.
- public $this setAttribute(string $key, mixed $value) - defined in October\Rain\Halcyon\Model. Set a given attribute on the model.
- public static void setCacheManager(Illuminate\Cache\CacheManager $cache) - defined in October\Rain\Halcyon\Model. Set the cache manager instance.
- public $this setDatasource(string $name) - defined in October\Rain\Halcyon\Model. Set the datasource associated with the model.
- public static void setDatasourceResolver(October\Rain\Halcyon\Datasource\ResolverInterface $resolver) - defined in October\Rain\Halcyon\Model. Set the datasource resolver instance.
- public static void setEventDispatcher(Illuminate\Contracts\Events\Dispatcher $dispatcher) - defined in October\Rain\Halcyon\Model. Set the event dispatcher instance.
- public void setFileNameAttribute(mixed $value) - defined in October\Rain\Halcyon\Model. File name should always contain an extension.
- public boolean setLoadedFromCache($value) - defined in October\Rain\Halcyon\Model. Returns true if the object was loaded from the cache.
- public static void setModelValidator(Illuminate\Validation\Validator $validator) - defined in Cms\Classes\CmsObject. Set the validator instance.
- public $this setObservableEvents(array $observables) - defined in October\Rain\Halcyon\Model. Set the observable event names.
- public $this setRawAttributes(array $attributes, bool $sync=false) - defined in October\Rain\Halcyon\Model. Set the array of model attributes. No checking is done.
- public void setSettingsAttribute(mixed $value) - defined in October\Rain\Halcyon\Model. Filling the settings should merge it with attributes.
- public $this syncOriginal() - defined in October\Rain\Halcyon\Model. Sync the original attributes with the current.
- public $this syncOriginalAttribute(string $attribute) - defined in October\Rain\Halcyon\Model. Sync a single original attribute with its current value.
- public array toArray() - defined in October\Rain\Halcyon\Model. Convert the model instance to an array.
- public string toJson(int $options=0) - defined in October\Rain\Halcyon\Model. Convert the model instance to JSON.
- public self unbindEvent(string $event=NULL) - defined in October\Rain\Halcyon\Model. Destroys an event binding.
- public static void unsetCacheManager() - defined in October\Rain\Halcyon\Model. Unset the cache manager for models.
- public static void unsetDatasourceResolver() - defined in October\Rain\Halcyon\Model. Unset the datasource resolver for models.
- public static void unsetEventDispatcher() - defined in October\Rain\Halcyon\Model. Unset the event dispatcher for models.
- public static void unsetModelValidator() - defined in Cms\Classes\CmsObject. Unset the validator for models.
- public bool|int update(array $attributes=array()) - defined in October\Rain\Halcyon\Model. Update the model in the database.
- public static void updated(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register an updated model event with the dispatcher.
- public static void updating(Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register an updating model event with the dispatcher.
- public bool validate($rules=NULL, $customMessages=NULL, $attributeNames=NULL) - defined in Cms\Classes\CmsObject. Validate the model instance.
- public static void validated(Closure|string $callback) - defined in Cms\Classes\CmsObject. Create a new native event for handling afterValidate().
- public static void validating(Closure|string $callback) - defined in Cms\Classes\CmsObject. Create a new native event for handling beforeValidate().
Protected methods
Show inherited protected methods
Inherited protected methods
- protected static void boot() - defined in Cms\Classes\CmsObject. The "booting" method of the model.
- protected static void bootDefaultTheme() - defined in Cms\Classes\CmsObject. Boot all of the bootable traits on the model.
- protected void bootIfNotBooted() - defined in October\Rain\Halcyon\Model. Check if the model needs to be booted and if so, do it.
- protected void bootNicerEvents() - defined in October\Rain\Halcyon\Model. Bind some nicer events to this model, in the format of method overrides.
- protected static void bootTraits() - defined in October\Rain\Halcyon\Model. Boot all of the bootable traits on the model.
- protected void checkSafeMode() - defined in Cms\Classes\CmsCompoundObject. This method checks if safe mode is enabled by config, and the code.
- protected array emitterEventSortEvents(string $eventName) - defined in October\Rain\Halcyon\Model. 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 void fillViewBagArray() - defined in Cms\Classes\CmsCompoundObject. Copies view bag properties to the view bag array.
- protected array fillableFromArray(array $attributes) - defined in October\Rain\Halcyon\Model. Get the fillable attributes of a given array.
- protected void finishSave(array $options) - defined in October\Rain\Halcyon\Model. Finish processing on a successful save operation.
- protected mixed fireModelEvent(string $event, bool $halt=true) - defined in October\Rain\Halcyon\Model. Fire the given event for the model.
- protected array getArrayableAppends() - defined in October\Rain\Halcyon\Model. Get all of the appendable values that are arrayable.
- protected mixed getAttributeFromArray(string $key) - defined in October\Rain\Halcyon\Model. Get an attribute from the $attributes array.
- protected array getValidationAttributes() - defined in Cms\Classes\CmsObject. Returns the model data used for validation.
- protected static Illuminate\Validation\Validator makeValidator($data, $rules, $customMessages, $attributeNames) - defined in Cms\Classes\CmsObject. Instantiates the validator used by the validation process, depending if the class is being used inside or.
- protected mixed mutateAttribute(string $key, mixed $value) - defined in October\Rain\Halcyon\Model. Get the value of an attribute using its mutator.
- protected mixed mutateAttributeForArray(string $key, mixed $value) - defined in October\Rain\Halcyon\Model. Get the value of an attribute using its mutator for array conversion.
- protected bool originalIsNumericallyEquivalent(string $key) - defined in October\Rain\Halcyon\Model. Determine if the new and old values for a given key are numerically equivalent.
- protected void parseComponentSettings() - defined in Cms\Classes\CmsCompoundObject. Parse component sections.
- protected void parseSettings() - defined in Cms\Classes\CmsCompoundObject. Parses the settings array.
- protected void performDeleteOnModel() - defined in October\Rain\Halcyon\Model. Perform the actual delete query on this model instance.
- protected bool performInsert(October\Rain\Halcyon\Builder $query, array $options=array()) - defined in October\Rain\Halcyon\Model. Perform a model insert operation.
- protected bool performUpdate(October\Rain\Halcyon\Builder $query, array $options=array()) - defined in October\Rain\Halcyon\Model. Perform a model update operation.
- protected array processRuleFieldNames(array $rules) - defined in Cms\Classes\CmsObject. Processes field names in a rule array.
- protected void processValidationRules($rules) - defined in Cms\Classes\CmsObject. Process rules.
- protected static void registerModelEvent(string $event, Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a model event with the dispatcher.
- protected void throwHalcyonSaveException(Exception $ex) - defined in Cms\Classes\CmsObject. Converts an exception type thrown by Halcyon to a native CMS exception.
- protected void validateSettings() - defined in Cms\Classes\CmsCompoundObject. If the model is loaded with an invalid INI section, the invalid content will be.