CoughCollection collects CoughObjects.
Located in /cough/CoughCollection.class.php (line 8)
ArrayObject | --CoughCollection
Returns a temporary key for adding an object that does not have a key ID yet.
Returns the element at the given key.
Returns a reference to the database object to use for queries.
Returns a new iterator for the collection.
Returns a new key-value iterator for the collection.
Returns the base SQL to use for the collection.
Defaults to just calling the object's getLoadSql() static method.
Override in sub class to use different SQL.
Get the $n-th position in the array, regardless of key indices.
$n = 0 gets first element, $n = (count - 1) gets last element.
Find out whether or not the collection is empty.
Loads the collection using the SQL provided by getLoadSql()
Loads the collection using the provided SQL
Removes a single element given either an ID or the object itself.
Removes a single element from the collection by key.
Due to a bug in PHP 5.2.1 and earlier, we do not use offsetExists()... This has the drawback of not working when a value exists, but is null, but if that ever happens behavior is UNDEFINED anyway (i.e. how do you have a null element in a CoughCollection? It makes no sense.) See http://bugs.php.net/bug.php?id=40872 for more details.
Removes a single element from the collection by comparing references.
Run save on each collected (or removed) element.
Sort the collection from an array of keys (where the keys are in the desired order).
Sort the collection from the return value of the specified method name of the collected objects.
Examples:
Sort the collection from the return value of the specified method names of the collected objects.
Examples:
Inherited From ArrayObject (Internal Class)
constructor __construct ( $array )
append ( $value )
asort ( )
count ( )
exchangeArray ( $array )
getArrayCopy ( )
getFlags ( )
getIterator ( )
getIteratorClass ( )
ksort ( )
natcasesort ( )
natsort ( )
offsetExists ( $index )
offsetGet ( $index )
offsetSet ( $index, $newval )
offsetUnset ( $index )
setFlags ( $flags )
setIteratorClass ( $iteratorClass )
uasort ( $cmp_function )
uksort ( $cmp_function )
Documentation generated on Sun, 19 Oct 2008 11:56:32 -0500 by phpDocumentor 1.4.0