Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • waArrayObject
  • waArrayObjectDiff
  • waCSV
  • waHtmlControl
  • waString
  • waUtils
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class waArrayObject

Implements smart multidimensional key => value storage that can be accessed both by array access and by field acces interfaces, including modification of deep layers.

$a = new waArrayObject();

// something simple... $a->q = 1; echo $a['q']; // == 1

// tricky $a['w']['e']['r']['t'] = 2; echo $a->w['e']->r->t; // == 2

// more magic $a->e = array('r' => array('t' => 3)); echo $a->e->r->t; // == 3

waArrayObject implements ArrayAccess, IteratorAggregate, Countable

Direct known subclasses

waArrayObjectDiff

Indirect known subclasses

waDbRecord
Package: wa-system\util
Located at wa-system/util/waArrayObject.class.php
Methods summary
public static mixed
# convert( mixed $data )

Convert native arrays and stdObjects to waArrayObject. Other values are returned as is.

Convert native arrays and stdObjects to waArrayObject. Other values are returned as is.

Parameters

$data
mixed
$data

Returns

mixed
public
# __construct( Traversable $data = array() )

Parameters

$data
Traversable
$data
public mixed
# setAll( array $data )

Append all key => value pairs from given Traversabel to $this

Append all key => value pairs from given Traversabel to $this

Parameters

$data
array
$data

Returns

mixed
$this
public integer
# count( )

Returns

integer
number of key => value pairs in this array

Implementation of

Countable::count()
public array
# toArray( )

Convert this object to a native array. Will currently cause infinite recursion for self-containing structures.

Convert this object to a native array. Will currently cause infinite recursion for self-containing structures.

Returns

array
public mixed
# clear( )

Remove all key => value pairs from this array

Remove all key => value pairs from this array

Returns

mixed
$this
public
# keyExists( mixed $name )

same as array_key_exists for native arrays

same as array_key_exists for native arrays

public mixed
# ifset( mixed $name, mixed $default = null )

Returns

mixed
$this[$name] or null if not set
public mixed
# ifempty( mixed $name, mixed $default = null )

Returns

mixed
$this[$name] or null if empty
public
# __clone( )
public &
# __get( mixed $name )
public
# __set( mixed $name, mixed $value )
public
# __isset( mixed $name )
public
# __unset( mixed $name )
public
# offsetGet( mixed $offset )

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( mixed $offset, mixed $data )

Implementation of

ArrayAccess::offsetSet()
public
# offsetExists( mixed $offset )

Implementation of

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

Implementation of

ArrayAccess::offsetUnset()
public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
protected boolean
# stub( mixed $val = null )

Returns

boolean
see $this->stub
protected mixed
# removeStubs( mixed $key = null )

Ensure that given key in rec_data is not a stub; when called with no parameters, removes all stubs.

Ensure that given key in rec_data is not a stub; when called with no parameters, removes all stubs.

Returns

mixed
$this
public
# __toString( )
Properties summary
protected array $rec_data array()
#

Data storage for array/field access. All native arrays and stdObjects are replaced with waArrayObjects before saving into this

Data storage for array/field access. All native arrays and stdObjects are replaced with waArrayObjects before saving into this

protected boolean $stub false
#

Indicates whether this object was created as a stub or intentionally. E.g. after
isset($this->a->b) $this->a is a stub that should be hidden from the outer code.

Indicates whether this object was created as a stub or intentionally. E.g. after isset($this->a->b) $this->a is a stub that should be hidden from the outer code.

Object is a stub if $this->stub == true and there's no non-stubs in $this->rec_data

My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0