Structures_DataGrid_DataSource_CSV
[ class tree: Structures_DataGrid_DataSource_CSV ] [ index: Structures_DataGrid_DataSource_CSV ] [ all elements ]

Class: Structures_DataGrid_DataSource_CSV_Memory

Source Location: /Structures_DataGrid_DataSource_CSV-0.1.6/DataGrid/DataSource/CSV.php

Class Overview


Stream wrapper for CSV DataSource driver


Author(s):

Version:

  • $Revision: 1.33 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 183]
Stream wrapper for CSV DataSource driver

This class is a stream wrapper for CSV data.

  • Author: Mark Wiesemann <wiesemann@php.net>
  • Version: $Revision: 1.33 $
  • Access: public


[ Top ]


Method Detail

initialize   [line 318]

mixed initialize( [boolean $checkOnly = false])

PHP 4 workaround to indicate whether the class was already initialized or not.
  • Return: void or boolean

Parameters:

boolean   $checkOnly   —  Whether the status should only be checked.

[ Top ]

stream_eof   [line 252]

boolean stream_eof( )

This method is called in response to feof() calls on the stream.
  • Return: Whether the read/write position is at the end of the stream

[ Top ]

stream_open   [line 210]

boolean stream_open( string $path, string $mode, integer $options, &$opened_path, string $opened_path)

This method is called immediately after the stream object is created.
  • Return: true on success, false on error

Parameters:

string   $path   —  Path (not used)
string   $mode   —  Mode (fopen(), not used)
integer   $options   —  Options (not used)
string   $opened_path   —  The opened path (not used)
   &$opened_path   — 

[ Top ]

stream_read   [line 224]

string stream_read( integer $count)

This method is called in response to fread() and fgets() calls on the stream.
  • Return: The data that was read

Parameters:

integer   $count   —  The number of bytes that should be read

[ Top ]

stream_seek   [line 278]

boolean stream_seek( integer $offset, integer $whence)

This method is called in response to fseek() calls on the stream.
  • Return: true if position was changed, false if position could not be changed

Parameters:

integer   $offset   —  Offset of the new position, added to the $whence position
integer   $whence   —  Start position; one of: SEEK_SET, SEEK_CUR, SEEK_END

[ Top ]

stream_tell   [line 263]

integer stream_tell( )

This method is called in response to ftell() calls on the stream.
  • Return: The current read/write position of the stream

[ Top ]

stream_write   [line 237]

string stream_write( integer $data)

This method is called in response to fwrite() calls on the stream.
  • Return: The number of bytes that was written

Parameters:

integer   $data   —  The data string that should be stored

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:13:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.