hasAttributeNs( self::NS_URI, 'id' ) ) || ( !isset( self::$properties[$id = (int) $this->getAttributeNs( self::NS_URI, 'id' )] ) ) || ( !isset( self::$properties[$id][$name] ) ) ) { return false; } return self::$properties[$id][$name]; } /** * Set property on current node * * Set a custom property on the current node, containing a mixed value * identified by a string identifier. * * @param string $name * @param mixed $value * @return void */ public function setProperty( $name, $value ) { if ( !$this->hasAttributeNs( self::NS_URI, 'id' ) ) { $id = self::$id++; $this->setAttributeNs( self::NS_URI, 'ez:id', $id ); self::$properties[$id] = array(); } else { $id = (int) $this->getAttributeNs( self::NS_URI, 'id' ); } self::$properties[$id][$name] = $value; } } ?>