public function getData($index, $position, $length)
	{
		// if position is not valid return empty string
		if (!isset($this->_list[$index]) || ($position >= $this->_list[$index]->Size) || ($position < 0)) {
			return '';
		}
		$fh = $this->getStream($this->_list[$index]);
		$data = stream_get_contents($fh, $length, $position);
		fclose($fh);
		return $data;
	}
public function getData($index, $position, $length)
	{
		// if position is not valid return empty string
		if (!isset($this->_list[$index]) || ($position >= $this->_list[$index]->Size) || ($position < 0)) {
			return '';
		}
		$fh = $this->getStream($this->_list[$index]);
		$data = stream_get_contents($fh, $length, $position);
		fclose($fh);
		return $data;
	}
public function getData ( $ index , $ position , $ length ) { // if position is not valid return empty string if ( ! isset ( $ this -> _list [ $ index ] ) || ( $ position >= $ this -> _list [ $ index ] -> Size ) || ( $ position < 0 ) ) { return '' ; } $ fh = $ this -> getStream ( $ this -> _list [ $ index ] ) ; $ data = stream_get_contents ( $ fh , $ length , $ position ) ; fclose ( $ fh ) ; return $ data ; }
Gets data from a PPS
If there is no PPS for the index given, it will return an empty string.

@access public
@param integer $index    The index for the PPS
@param integer $position The position from which to start reading
(relative to the PPS)
@param integer $length   The amount of bytes to read (at most)
@return string The binary string containing the data requested
@see OLE_PPS_File::getStream()
Gets data from a PPS If there is no PPS for the index given it will return an empty string .