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 Vars

Accessor for the variables stored as files in the "/repository/var" directory.

ICanBoogie\Vars implements ArrayAccess, IteratorAggregate
Namespace: ICanBoogie
Located at vendor/icanboogie/icanboogie/lib/vars.php

Methods summary

public
# __construct( string $path )

Constructor.

Constructor.

Parameters

$path
string
$path Absolute path to the vars directory.

Throws

ICanBoogie\Exception
when the path is not writable.
public
# offsetSet( mixed $name, mixed $value )

Stores the value of a var using the ICanBoogie\Vars::store() method.

Stores the value of a var using the ICanBoogie\Vars::store() method.

See

ArrayAccess::offsetSet()

Implementation of

ArrayAccess::offsetSet()
public boolean
# offsetExists( string $name )

Checks if the var exists.

Checks if the var exists.

Parameters

$name
string
$name Name of the variable.

Returns

boolean
true if the var exists, false otherwise.

See

ArrayAccess::offsetExists()

Implementation of

ArrayAccess::offsetExists()
public
# offsetUnset( mixed $name )

Deletes a var.

Deletes a var.

See

ArrayAccess::offsetUnset()

Implementation of

ArrayAccess::offsetUnset()
public
# offsetGet( mixed $name )

Returns the value of the var using the ICanBoogie\Vars::retrieve() method.

Returns the value of the var using the ICanBoogie\Vars::retrieve() method.

See

ArrayAccess::offsetGet()

Implementation of

ArrayAccess::offsetGet()
public
# store( string $key, mixed $value, integer $ttl = 0 )

Cache a variable in the repository.

Cache a variable in the repository.

If the value is an array or a string it is serialized and prepended with a magic identifier. This magic identifier is used to recognized previously serialized values when they are read back.

Parameters

$key
string
$key The key used to identify the value. Keys are unique, so storing a second value with the same key will overwrite the previous value.
$value
mixed
$value The value to store for the key.
$ttl
integer
$ttl The time to live in seconds for the stored value. If no _ttl_ is supplied (or if the _tll_ is __0__), the value will persist until it is removed from the cache manually or otherwise fails to exist in the cache.

Throws

ICanBoogie\Exception
when a file operation fails.
public mixed
# retrieve( string $name, mixed $default = null )

Returns the value of variable.

Returns the value of variable.

If the value is marked with the magic identifier it is not serialized.

Parameters

$name
string
$name
$default
mixed
$default The value returned if the variable does not exists. Defaults to null.

Returns

mixed
public ICanBoogie\VarsIterator
# getIterator( )

Returns a directory iterator for the variables.

Returns a directory iterator for the variables.

Returns

ICanBoogie\VarsIterator

See

IteratorAggregate::getIterator()

Implementation of

IteratorAggregate::getIterator()
public ICanBoogie\VarsIterator
# matching( string $regex )

Returns a file iterator for variables matching a regex.

Returns a file iterator for variables matching a regex.

Parameters

$regex
string
$regex

Returns

ICanBoogie\VarsIterator

Magic methods summary

Constants summary

string MAGIC "VAR\0SLZ\0"
#

Magic pattern used to recognized automatically serialized values.

Magic pattern used to recognized automatically serialized values.

integer MAGIC_LENGTH 8
#

Length of the magic pattern ICanBoogie\Vars::MAGIC.

Length of the magic pattern ICanBoogie\Vars::MAGIC.

Properties summary

protected string $path
#

Absolute path to the vars directory.

Absolute path to the vars directory.

Autodoc API documentation generated by ApiGen 2.8.0