-
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
- CmsObject
Cms\Classes\CmsObject
Source: ~/modules/cms/classes/CmsObject.php
Extends:
Implements:
- JsonSerializable
- Illuminate\Contracts\Support\Jsonable
- Illuminate\Contracts\Support\Arrayable
- ArrayAccess
- Cms\Contracts\CmsObject
This is a base class for all CMS objects - content files, pages, partials and layouts. The class implements basic operations with file-based templates.
Public properties
public array $rules
The rules to be applied to the data.
public array $attributeNames
The array of custom attribute names.
public array $customMessages
The array of custom error messages.
Show inherited public properties
Inherited public properties
- 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 array $fillable
The attributes that are mass assignable.
protected bool $isCompoundObject
Model supports code and settings sections.
protected Cms\Classes\Theme $themeCache
A reference to the CMS theme containing the object.
protected Illuminate\Support\MessageBag $validationErrors
The message bag instance containing validation error messages
protected static Illuminate\Validation\Validator $validator
The validator instance.
Show inherited protected properties
Inherited protected properties
- protected string $datasource - defined in October\Rain\Halcyon\Model. The data source for the model, a directory path.
- protected string $dirName - defined in October\Rain\Halcyon\Model. The container name associated with the model, eg: pages.
- 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.
Public methods
public static void bootValidation()
Boot the validation trait for this model.
public Illuminate\Support\MessageBag errors()
Get validation error message collection for the Model
public bool forceSave($options=NULL)
Force save the model even if validation fails.
Parameters
- $options
public string getBaseFileName()
Returns the file name without the extension.
public string getContent()
Returns the file content.
public string getFileName()
Returns the file name.
public string getFilePath(string $fileName=NULL)
Returns the full path to the template file corresponding to this object.
Parameters
- string $fileName
public string getId()
Helper for {{ page.id }} or {{ layout.id }} twig vars Returns a unique string for this object.
public static Illuminate\Validation\Validator getModelValidator()
Get the validator instance.
public Cms\Classes\Theme getThemeAttribute()
Returns the CMS theme this object belongs to.
public string getTwigCacheKey()
Returns the key used by the Twig cache.
public string getTwigContent()
Returns the Twig content string.
public static $this inTheme(Cms\Classes\Theme $theme)
Prepares the theme datasource for the model.
Parameters
- Cms\Classes\Theme $theme - Specifies a parent theme.
public boolean isAttributeRequired(string $attribute)
Determines if an attribute is required based on the validation rules.
Parameters
- string $attribute
public static Collection listInTheme(Cms\Classes\Theme $theme, boolean $skipCache=false)
Returns the list of objects in the specified theme. This method is used internally by the system.
Parameters
- Cms\Classes\Theme $theme - Specifies a parent theme.
- boolean $skipCache - Indicates if objects should be reloaded from the disk bypassing the cache.
public static mixed load(mixed $theme, string $fileName)
Loads the object from a file. This method is used in the CMS back-end. It doesn't use any caching.
Parameters
- mixed $theme - Specifies the theme the object belongs to.
- string $fileName - Specifies the file name, with the extension. The file name can contain only alphanumeric symbols, dashes and dots.
public static mixed loadCached(Cms\Classes\Theme $theme, string $fileName)
Loads the object from a cache. This method is used by the CMS in the runtime. If the cache is not found, it is created.
Parameters
- Cms\Classes\Theme $theme - Specifies the theme the object belongs to.
- string $fileName - Specifies the file name, with the extension.
public bool save(array $options=NULL)
Save the object to the theme.
Parameters
- array $options
public static void setModelValidator(Illuminate\Validation\Validator $validator)
Set the validator instance.
Parameters
- Illuminate\Validation\Validator $validator
public static void unsetModelValidator()
Unset the validator for models.
public bool validate($rules=NULL, $customMessages=NULL, $attributeNames=NULL)
Validate the model instance
Parameters
- $rules
- $customMessages
- $attributeNames
public static void validated(Closure|string $callback)
Create a new native event for handling afterValidate().
Parameters
- Closure|string $callback
public static void validating(Closure|string $callback)
Create a new native event for handling beforeValidate().
Parameters
- Closure|string $callback
Inherited public methods
- public mixed __call(string $method, array $parameters) - defined in October\Rain\Halcyon\Model. Handle dynamic method calls into the model.
- 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 mixed __get(string $key) - defined in October\Rain\Halcyon\Model. Dynamically retrieve attributes on the model.
- public bool __isset(string $key) - defined in October\Rain\Halcyon\Model. Determine if an attribute exists on the model.
- public void __set(string $key, mixed $value) - defined in October\Rain\Halcyon\Model. 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 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 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 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 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 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 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 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 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 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 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 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 bool getWrapCode() - defined in October\Rain\Halcyon\Model. Returns true if the code section will be wrapped in PHP tags.
- 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 void initCacheItem(array &$cached) - defined in October\Rain\Halcyon\Model. Initializes the object properties from the cached data. The extra data.
- 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 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 October\Rain\Halcyon\Model. Create a new Halcyon 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 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 $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 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.
Protected methods
protected static void boot()
The "booting" method of the model.
protected static void bootDefaultTheme()
Boot all of the bootable traits on the model.
protected array getValidationAttributes()
Returns the model data used for validation.
protected static Illuminate\Validation\Validator makeValidator($data, $rules, $customMessages, $attributeNames)
Instantiates the validator used by the validation process, depending if the class is being used inside or outside of Laravel.
Parameters
- $data
- $rules
- $customMessages
- $attributeNames
protected array processRuleFieldNames(array $rules)
Processes field names in a rule array.
Converts any field names using array notation (ie. field[child]
) into dot notation (ie. field.child
)
Parameters
- array $rules - Rules array
protected void processValidationRules($rules)
Process rules
Parameters
- $rules
protected void throwHalcyonSaveException(Exception $ex)
Converts an exception type thrown by Halcyon to a native CMS exception.
Parameters
- Exception $ex
Show inherited protected methods
Inherited protected methods
- 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 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 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 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 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 static void registerModelEvent(string $event, Closure|string $callback, int $priority=0) - defined in October\Rain\Halcyon\Model. Register a model event with the dispatcher.