keepassphp/lib/entry.php
private function readString(ProtectedXMLReader $reader)
	{
		$d = $reader->depth();
		$key = null;
		$value = null;
		while($reader->read($d))
		{
			if($reader->isElement(Database::XML_STRING_KEY))
				$key = $reader->readTextInside();
			elseif($reader->isElement(Database::XML_STRING_VALUE))
				$value = $reader->readTextInside(true);
		}
		if(empty($key) || $value == null)
			return;
		if(\strcasecmp($key, Database::KEY_PASSWORD) == 0)
			$this->password = $value;
		else
			$this->stringFields[$key] = $value;
	}
private function readString(ProtectedXMLReader $reader)
	{
		$d = $reader->depth();
		$key = null;
		$value = null;
		while($reader->read($d))
		{
			if($reader->isElement(Database::XML_STRING_KEY))
				$key = $reader->readTextInside();
			elseif($reader->isElement(Database::XML_STRING_VALUE))
				$value = $reader->readTextInside(true);
		}
		if(empty($key) || $value == null)
			return;
		if(\strcasecmp($key, Database::KEY_PASSWORD) == 0)
			$this->password = $value;
		else
			$this->stringFields[$key] = $value;
	}
private function readString ( ProtectedXMLReader $ reader ) { $ d = $ reader -> depth ( ) ; $ key = null ; $ value = null ; while ( $ reader -> read ( $ d ) ) { if ( $ reader -> isElement ( Database :: XML_STRING_KEY ) ) $ key = $ reader -> readTextInside ( ) ; elseif ( $ reader -> isElement ( Database :: XML_STRING_VALUE ) ) $ value = $ reader -> readTextInside ( true ) ; } if ( empty ( $ key ) || $ value == null ) return ; if ( \ strcasecmp ( $ key , Database :: KEY_PASSWORD ) == 0 ) $ this -> password = $ value ; else $ this -> stringFields [ $ key ] = $ value ; }
Parses a string XML element node.
@param $reader A XML reader located at a string element node.
Parses a string XML element node .