Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActiveRecord
  • Cache
  • Configs
  • Core
  • DateTime
  • Debug
  • DeleteOperation
  • Errors
  • Event
  • EventHook
  • Events
  • FileCache
  • FormattedString
  • Helpers
  • I18n
  • Image
  • Inflections
  • Inflector
  • Models
  • Module
  • Modules
  • Object
  • Operation
  • PingOperation
  • Prototype
  • Route
  • Routes
  • SaveOperation
  • Session
  • TimeZone
  • TimeZoneLocation
  • Uploaded
  • Vars
  • VarsIterator

Interfaces

  • StorageInterface
  • ToArray
  • ToArrayRecursive

Traits

  • PrototypeTrait
  • ToArrayRecursiveTrait

Exceptions

  • AlreadyAuthenticated
  • AuthenticationRequired
  • Exception
  • ModuleConstructorMissing
  • ModuleIsDisabled
  • ModuleNotDefined
  • OffsetError
  • OffsetNotDefined
  • OffsetNotReadable
  • OffsetNotWritable
  • PermissionRequired
  • PropertyError
  • PropertyIsReserved
  • PropertyNotDefined
  • PropertyNotReadable
  • PropertyNotWritable
  • RouteNotDefined
  • SecurityException

Constants

  • TOKEN_ALPHA
  • TOKEN_ALPHA_UPCASE
  • TOKEN_NUMERIC
  • TOKEN_SYMBOL
  • TOKEN_SYMBOL_WIDE

Functions

  • array_flatten
  • array_insert
  • array_merge_recursive
  • camelize
  • capitalize
  • downcase
  • dump
  • escape
  • escape_all
  • exact_array_merge_recursive
  • excerpt
  • format
  • generate_token
  • generate_token_wide
  • generate_v4_uuid
  • get_autoconfig
  • humanize
  • hyphenate
  • log
  • log_error
  • log_info
  • log_success
  • log_time
  • normalize
  • normalize_namespace_part
  • normalize_url_path
  • pbkdf2
  • pluralize
  • remove_accents
  • shorten
  • singularize
  • sort_by_weight
  • stable_sort
  • strip_root
  • titleize
  • unaccent_compare
  • unaccent_compare_ci
  • underscore
  • upcase

Class Events

Events collected from the "hooks" config or attached by the user.

ICanBoogie\Events implements IteratorAggregate
Namespace: ICanBoogie
Located at vendor/icanboogie/event/lib/events.php

Methods summary

public static mixed
# __callstatic( string $name, array $arguments )

Calls the callback of a patchable function.

Calls the callback of a patchable function.

Parameters

$name
string
$name Name of the function.
$arguments
array
$arguments Arguments.

Returns

mixed
public static
# patch( string $name, collable $callback )

Patches a patchable function.

Patches a patchable function.

Parameters

$name
string
$name Name of the function.
$callback
collable
$callback Callback.

Throws

RuntimeException
is attempt to patch an undefined function.
public
# __construct( array $hooks = array() )
public
# getIterator( )

Returns an iterator for event hooks.

Returns an iterator for event hooks.

Implementation of

IteratorAggregate::getIterator()
public ICanBoogie\EventHook
# attach( callable $name, mixed $hook = null )

Attaches an event hook.

Attaches an event hook.

The name of the event is resolved from the parameters of the event hook. Consider the following code:

<?php

$events->attach(function(ICanBoogie\Operation\BeforeProcessEvent $event, ICanBoogie\SaveOperation $target) {

    // …

});

The hook will be attached to the ICanBoogie\SaveOperation::process:before event.

Parameters

$name
callable
$hook The event hook.
$hook

Returns

ICanBoogie\EventHook
An ICanBoogie\EventHook instance that can be used to easily detach the event hook.

Throws

InvalidArgumentException
when $hook is not a callable.
public
# batch_attach( array $definitions )
public
# detach( string $name, callable $hook )

Detaches an event hook.

Detaches an event hook.

Parameters

$name
string
$name The name of the event.
$hook
callable
$hook The event hook.

Throws

ICanBoogie\Exception
when the event hook is not attached to the event name.
public
# skip( string $name )

Marks an event as skippable.

Marks an event as skippable.

Parameters

$name
string
$name The event name.
public boolean
# is_skippable( string $name )

Returns whether or not an event has been marked as skippable.

Returns whether or not an event has been marked as skippable.

Parameters

$name
string
$name The event name.

Returns

boolean
true if the event can be skipped, false otherwise.
public array
# get_hooks( string $name )

Returns the event hooks attached to the specified event name.

Returns the event hooks attached to the specified event name.

If the class of the event's target is provided, event hooks are filtered according to the class and its hierarchy.

Parameters

$name
string
$name The event name.

Returns

array

Magic methods summary

Properties summary

protected array[string]array $hooks
#

Event collection.

Event collection.

protected array[string]array $consolidated_hooks
#

Event hooks consolidated by class and type.

Event hooks consolidated by class and type.

protected array[string]bool $skippable
#

Lists of skippable events.

Lists of skippable events.

Autodoc API documentation generated by ApiGen 2.8.0