diff options
Diffstat (limited to 'REFLECTION')
-rw-r--r-- | REFLECTION | 97 |
1 files changed, 64 insertions, 33 deletions
@@ -1,45 +1,76 @@ -Extension [ <persistent> extension #73 csv version 0.3.1 ] { +Extension [ <persistent> extension #69 csv version 0.4.0 ] { - - Functions { - Function [ <internal:csv> function csv_array_to_row ] { + - Classes [1] { + Class [ <internal:csv> final class CSV ] { - - Parameters [4] { - Parameter #0 [ <required> array $fields ] - Parameter #1 [ <optional> string $delimiter ] - Parameter #2 [ <optional> string $enclosure ] - Parameter #3 [ <optional> string $eolSequence ] + - Constants [0] { } - - Return [ string ] - } - Function [ <internal:csv> function csv_collection_to_file ] { - - Parameters [4] { - Parameter #0 [ <required> array $collection ] - Parameter #1 [ <optional> string $delimiter ] - Parameter #2 [ <optional> string $enclosure ] - Parameter #3 [ <optional> string $eolSequence ] + - Static properties [0] { } - - Return [ string ] - } - Function [ <internal:csv> function csv_file_to_collection ] { - - Parameters [4] { - Parameter #0 [ <required> string $file ] - Parameter #1 [ <optional> string $delimiter ] - Parameter #2 [ <optional> string $enclosure ] - Parameter #3 [ <optional> string $eolSequence ] + - Static methods [5] { + Method [ <internal:csv> static public method arrayToRow ] { + + - Parameters [4] { + Parameter #0 [ <required> array $fields ] + Parameter #1 [ <optional> string $delimiter = ',' ] + Parameter #2 [ <optional> string $enclosure = '"' ] + Parameter #3 [ <optional> string $eolSequence = "\r\n" ] + } + - Return [ string ] + } + + Method [ <internal:csv> static public method rowToArray ] { + + - Parameters [4] { + Parameter #0 [ <required> string $row ] + Parameter #1 [ <optional> string $delimiter = ',' ] + Parameter #2 [ <optional> string $enclosure = '"' ] + Parameter #3 [ <optional> string $eolSequence = "\r\n" ] + } + - Return [ array ] + } + + Method [ <internal:csv> static public method collectionToBuffer ] { + + - Parameters [4] { + Parameter #0 [ <required> iterable $collection ] + Parameter #1 [ <optional> string $delimiter = ',' ] + Parameter #2 [ <optional> string $enclosure = '"' ] + Parameter #3 [ <optional> string $eolSequence = "\r\n" ] + } + - Return [ string ] + } + + Method [ <internal:csv> static public method bufferToCollection ] { + + - Parameters [4] { + Parameter #0 [ <required> string $buffer ] + Parameter #1 [ <optional> string $delimiter = ',' ] + Parameter #2 [ <optional> string $enclosure = '"' ] + Parameter #3 [ <optional> string $eolSequence = "\r\n" ] + } + - Return [ array ] + } + + Method [ <internal:csv> static public method bufferToCollectionLax ] { + + - Parameters [4] { + Parameter #0 [ <required> string $buffer ] + Parameter #1 [ <optional> string $delimiter = ',' ] + Parameter #2 [ <optional> string $enclosure = '"' ] + Parameter #3 [ <optional> string $eolSequence = "\r\n" ] + } + - Return [ array ] + } + } + + - Properties [0] { } - - Return [ array ] - } - Function [ <internal:csv> function csv_row_to_array ] { - - Parameters [4] { - Parameter #0 [ <required> string $row ] - Parameter #1 [ <optional> string $delimiter ] - Parameter #2 [ <optional> string $enclosure ] - Parameter #3 [ <optional> string $eolSequence ] + - Methods [0] { } - - Return [ array ] } } } |