libSmalldb  v2.0.1
Public Member Functions | Protected Member Functions | List of all members
AbstractGraphElement Class Reference

Inheritance diagram for AbstractGraphElement

Public Member Functions

 __construct (NestedGraph $graph, string $id, array $attrs)
 
 getId ()
 
 getGraph ()
 
 getRootGraph ()
 
 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 ( NestedGraph  $graph,
string  $id,
array  $attrs 
)

Member Function Documentation

◆ getId()

getId ( )

◆ getGraph()

getGraph ( )

◆ getRootGraph()

getRootGraph ( )

◆ offsetSet()

offsetSet (   $key,
  $value 
)
inherited

◆ offsetGet()

& offsetGet (   $key)
inherited

◆ getAttr()

getAttr ( string  $key,
  $defaultValue = null 
)
inherited

◆ offsetUnset()

offsetUnset (   $key)
inherited

◆ setAttr()

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

◆ removeAttr()

removeAttr ( string  $key)
inherited
Returns
$this

◆ offsetExists()

offsetExists (   $key)
inherited

◆ getAttributes()

getAttributes ( )
inherited

◆ onAttrChanged()

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