libSmalldb  v2.0.2
Public Member Functions | Protected Member Functions | List of all members
AbstractElement Class Reference

Inheritance diagram for AbstractElement

Public Member Functions

 __construct (array $attrs=[])
 
 offsetSet ($key, $value)
 
offsetGet ($key)
 
 getAttr (string $key, $defaultValue=null)
 
 offsetUnset ($key)
 
 setAttr (string $key, $newValue)
 
 removeAttr (string $key)
 
 offsetExists ($key)
 
 getAttributes ()
 

Protected Member Functions

 onAttrChanged (string $key, $oldValue, $newValue)
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $attrs = [])

Member Function Documentation

◆ offsetSet()

offsetSet (   $key,
  $value 
)

◆ offsetGet()

& offsetGet (   $key)

◆ getAttr()

getAttr ( string  $key,
  $defaultValue = null 
)

◆ offsetUnset()

offsetUnset (   $key)

◆ setAttr()

setAttr ( string  $key,
  $newValue 
)
Returns
$this

◆ removeAttr()

removeAttr ( string  $key)
Returns
$this

◆ offsetExists()

offsetExists (   $key)

◆ getAttributes()

getAttributes ( )

◆ onAttrChanged()

onAttrChanged ( string  $key,
  $oldValue,
  $newValue 
)
abstractprotected