|
Doctrine 1.2.4
|
Inherits Doctrine_Collection.
Static Public Member Functions | |
| static | getNullObject () |
| static | initNullObject (Doctrine_Null $null) |
Protected Member Functions | |
| compareRecords ($a, $b) | |
Definition at line 34 of file Offset.php.
| Doctrine_Collection_Offset::__construct | ( | Doctrine_Table | $table | ) |
| Doctrine_Table | $table |
Definition at line 44 of file Offset.php.
|
inherited |
Get key from data
| mixed | $name |
Definition at line 70 of file Access.php.
|
inherited |
Check if key exists in data
| string | $name |
Definition at line 81 of file Access.php.
|
inherited |
Set key and value to data
| $name | |
| $value |
Definition at line 58 of file Access.php.
|
inherited |
Returns a string representation of this object
Definition at line 1038 of file Collection.php.
|
inherited |
Remove key from data
| string | $name |
Definition at line 92 of file Access.php.
|
inherited |
Add the value
| mixed | $value | The value to add |
Definition at line 199 of file Access.php.
|
inherited |
Adds a record to collection
| Doctrine_Record | $record | record to be added |
| string | $key | optional key for the record |
for some weird reason in_array cannot be used here (php bug ?)
if used it results in fatal error : [ nesting level too deep ]
Definition at line 451 of file Collection.php.
|
inherited |
bind binds a resource to a name
| string | $name | the name of the resource to bind |
| mixed | $value | the value of the resource |
Definition at line 120 of file Injectable.php.
|
inherited |
Clears the collection.
Definition at line 994 of file Collection.php.
|
protectedinherited |
Compares two records. To be used on _snapshot diffs using array_udiff
| Doctrine_Record | $a | |
| Doctrine_Record | $b |
Definition at line 878 of file Collection.php.
|
inherited |
Whether or not this collection contains a specified element
| mixed | $key | the key of the element |
Definition at line 325 of file Collection.php.
|
inherited |
Gets the number of records in this collection This class implements interface countable
Definition at line 423 of file Collection.php.
|
inherited |
Deletes all records from this collection
Definition at line 962 of file Collection.php.
|
inherited |
Get the last record in the collection
Definition at line 252 of file Collection.php.
|
inherited |
Export a Doctrine_Collection to one of the supported Doctrine_Parser formats
| string | $type | |
| string | $deep |
Definition at line 826 of file Collection.php.
|
inherited |
Frees the resources used by the collection. WARNING: After invoking free() the collection is no longer considered to be in a useable state. Subsequent usage may result in unexpected behavior.
Definition at line 1006 of file Collection.php.
|
inherited |
Populate a Doctrine_Collection from an array of data
| string | $array |
Definition at line 780 of file Collection.php.
|
inherited |
Gets a record for given key
There are two special cases:
Collection also maps referential information to newly created records
| mixed | $key | the key of the element |
Definition at line 357 of file Collection.php.
|
inherited |
Get all the records as an array
Definition at line 222 of file Collection.php.
|
inherited |
Perform a delete diff between the last snapshot and the current data
Definition at line 856 of file Collection.php.
|
inherited |
Get the first record in the collection
Definition at line 232 of file Collection.php.
|
inherited |
Perform a insert diff between the last snapshot and the current data
Definition at line 866 of file Collection.php.
| Doctrine_Collection_Offset::getIterator | ( | ) |
Definition at line 61 of file Offset.php.
|
inherited |
Get the name of the key column
Definition at line 212 of file Collection.php.
|
inherited |
Get all keys of the data in the collection
Definition at line 412 of file Collection.php.
|
inherited |
Get the last record in the collection
Definition at line 242 of file Collection.php.
| Doctrine_Collection_Offset::getLimit | ( | ) |
|
inherited |
getLocator returns the locator associated with this object
if there are no locator locally associated then this method tries to fetch the current global locator
Definition at line 75 of file Injectable.php.
|
inherited |
Get normal iterator - an iterator that will not expand this collection
Definition at line 638 of file Collection.php.
|
staticinherited |
getNullObject returns the null object associated with this object
Definition at line 145 of file Injectable.php.
|
inherited |
Get array of primary keys for all the records in the collection
Definition at line 392 of file Collection.php.
|
inherited |
Get reference to Doctrine_Record instance
Definition at line 300 of file Collection.php.
|
inherited |
Returns the relation object
Definition at line 1048 of file Collection.php.
|
inherited |
Gets the data of the last snapshot
Definition at line 667 of file Collection.php.
|
inherited |
Get the table this collection belongs to
Definition at line 129 of file Collection.php.
|
inherited |
Import data to a Doctrine_Collection from one of the supported Doctrine_Parser formats
| string | $type | |
| string | $data |
Definition at line 842 of file Collection.php.
|
staticinherited |
Initializes the null object for this collection
Definition at line 107 of file Collection.php.
|
finalinherited |
checks if one of the containing records is modified returns true if modified, false otherwise
Definition at line 1059 of file Collection.php.
|
inherited |
|
inherited |
Load all relationships or the named relationship passed
| mixed | $name |
Definition at line 528 of file Collection.php.
|
inherited |
locate locates a resource by given name and returns it
if the resource cannot be found locally this method tries to use the global locator for finding the resource
| Doctrine_Locator_Exception | if the resource could not be found |
| string | $name | the name of the resource |
Definition at line 96 of file Injectable.php.
|
inherited |
Merges collection into $this and returns merged collection
| Doctrine_Collection | $coll |
Definition at line 506 of file Collection.php.
|
inherited |
Check if an offset axists
| mixed | $offset |
Definition at line 103 of file Access.php.
|
inherited |
An alias of get()
| mixed | $offset |
Definition at line 115 of file Access.php.
|
inherited |
Sets $offset to $value
| mixed | $offset | |
| mixed | $value |
Definition at line 128 of file Access.php.
|
inherited |
Unset a given offset
| mixed | $offset |
Definition at line 143 of file Access.php.
|
inherited |
Populate the relationship $name for all records in the passed collection
| string | $name | |
| Doctrine_Collection | $coll |
Definition at line 581 of file Collection.php.
|
inherited |
Processes the difference of the last snapshot and the current data
an example: Snapshot with the objects 1, 2 and 4 Current data with objects 2, 3 and 5
The process would remove object 4
Definition at line 683 of file Collection.php.
|
inherited |
Removes a specified collection element
| mixed | $key |
Definition at line 311 of file Collection.php.
|
inherited |
Replaces all records of this collection and processes the difference of the last snapshot and the current data
| Doctrine_Connection | $conn | optional connection parameter |
Definition at line 929 of file Collection.php.
|
inherited |
Saves all records of this collection and processes the difference of the last snapshot and the current data
| Doctrine_Connection | $conn | optional connection parameter |
Definition at line 894 of file Collection.php.
|
inherited |
Search a Doctrine_Record instance
| string | $Doctrine_Record |
Definition at line 336 of file Collection.php.
|
inherited |
This method is automatically called when this Doctrine_Collection is serialized
Definition at line 150 of file Collection.php.
|
inherited |
Set a Doctrine_Record instance to the collection
| integer | $key | |
| Doctrine_Record | $record |
Definition at line 435 of file Collection.php.
|
inherited |
Set an entire aray to the data
| array | $array | An array of key => value pairs |
Definition at line 41 of file Access.php.
|
inherited |
Set the data for the Doctrin_Collection instance
| array | $data |
Definition at line 140 of file Collection.php.
|
inherited |
Sets the key column for this collection
| string | $column |
Definition at line 200 of file Collection.php.
|
inherited |
setLocator this method can be used for setting the locator object locally
| Doctrine_Locator | the locator object |
Definition at line 60 of file Injectable.php.
|
inherited |
Sets a reference pointer
Definition at line 272 of file Collection.php.
|
inherited |
synchronizes a Doctrine_Collection with data from an array
it expects an array representation of a Doctrine_Collection similar to the return value of the toArray() method. It will create Dectrine_Records that don't exist on the collection, update the ones that do and remove the ones missing in the $array
| array | $array | representation of a Doctrine_Collection |
Definition at line 797 of file Collection.php.
|
inherited |
Takes a snapshot from this collection
snapshots are used for diff processing, for example when a fetched collection has three elements, then two of those are being removed the diff would contain one element
Doctrine_Collection::save() attaches the diff with the help of last snapshot.
Definition at line 655 of file Collection.php.
|
inherited |
Mimics the result of a $query->execute(array(), Doctrine_Core::HYDRATE_ARRAY);
| boolean | $deep |
Definition at line 697 of file Collection.php.
|
inherited |
Build an array made up of the values from the 2 specified columns
| string | $key | |
| string | $value |
Definition at line 717 of file Collection.php.
|
inherited |
This method is automatically called everytime a Doctrine_Collection object is unserialized
Definition at line 171 of file Collection.php.