mixed) $state The state to set. * @return void */ public function setState( array $state ) { foreach ( $state as $attribute => $value ) { $this->$attribute = $value; } } /** * Get the PersistentObject state. * * @return array(string=>mixed) The state of the object. */ public function getState() { return array( 'id' => $this->id, 'lft' => $this->lft, 'parent_id' => $this->parent_id, 'rgt' => $this->rgt, ); } } ?>