Stud.IP  3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
CSVArrayObject Class Reference
Inheritance diagram for CSVArrayObject:
Inheritance graph
Collaboration diagram for CSVArrayObject:
Collaboration graph

Public Member Functions

 __construct ($input)
 __toString ()
- Public Member Functions inherited from StudipArrayObject
 __construct ($input=array(), $flags=self::STD_PROP_LIST, $iteratorClass= 'ArrayIterator')
 __isset ($key)
 __set ($key, $value)
 __unset ($key)
 __get ($key)
 append ($value)
 asort ()
 count ()
 exchangeArray ($data)
 getArrayCopy ()
 getFlags ()
 getIterator ()
 getIteratorClass ()
 ksort ()
 natcasesort ()
 natsort ()
 offsetExists ($key)
 offsetGet ($key)
 offsetSet ($key, $value)
 offsetUnset ($key)
 serialize ()
 setFlags ($flags)
 setIteratorClass ($class)
 uasort ($function)
 uksort ($function)
 unserialize ($data)

Additional Inherited Members

- Data Fields inherited from StudipArrayObject
const STD_PROP_LIST = 1
const ARRAY_AS_PROPS = 2
- Protected Attributes inherited from StudipArrayObject
 $storage
 $flag
 $iteratorClass
 $protectedProperties

Detailed Description

This class works like an array. The internal array is constructed from a comma separated string When used in an string context, it is automatically converted to a comma separated string

Usage:

$csvarray = new CSVArrayObject('eins,zwei,drei');
$csvarray[] = 'vier';
echo $csvarray; // prints out "eins,zwei,drei,vier"

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author
André Noack noack.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e http://www.php.net/manual/en/class.arrayobject.php

Constructor & Destructor Documentation

__construct (   $input)

Construct an array object from a string of comma separated items

Parameters
string$inputa string of comma separated items

Member Function Documentation

__toString ( )

magic method for use of object in string context

Returns
string internal array itmes converted to a comma separated list

Here is the call graph for this function:


The documentation for this class was generated from the following file: