value = $store[$index]; if ( !is_scalar( $this->value ) ) { throw new MWException( __CLASS__ . ' given object instead of string' ); } $this->store = $store; $this->index = $index; } public function __toString() { return htmlspecialchars( $this->value ); } public function getNextSibling() { return PPNode_Hash_Tree::factory( $this->store, $this->index + 1 ); } public function getChildren() { return false; } public function getFirstChild() { return false; } public function getChildrenOfType( $name ) { return false; } public function getLength() { return false; } public function item( $i ) { return false; } public function getName() { return '#text'; } public function splitArg() { throw new MWException( __METHOD__ . ': not supported' ); } public function splitExt() { throw new MWException( __METHOD__ . ': not supported' ); } public function splitHeading() { throw new MWException( __METHOD__ . ': not supported' ); } }