PHP 클래스 Doctrine\ODM\MongoDB\PersistentCollection

부터: 1.0
저자: Jonathan H. Wage ([email protected])
저자: Roman Borschel ([email protected])
상속: implements Doctrine\Common\Collections\Collection
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Collections\Collection $coll, DocumentManager $dm, Configuration $c )
__sleep ( ) Called by PHP when this collection is serialized. Ensures that only the elements are properly serialized.
add ( $value )
clear ( )
clearSnapshot ( ) INTERNAL: Clears the internal snapshot information and sets isDirty to true if the collection has elements.
contains ( $element )
containsKey ( $key )
count ( )
current ( ) Gets the element of the collection at the current iterator position.
exists ( Closure $p )
filter ( Closure $p )
first ( )
forAll ( Closure $p )
get ( $key )
getDeleteDiff ( ) : array INTERNAL: getDeleteDiff
getInsertDiff ( ) : array INTERNAL: getInsertDiff
getIterator ( )
getKeys ( )
getMapping ( )
getOwner ( ) : object INTERNAL: Gets the collection owner.
getReferences ( )
getSnapshot ( ) : array INTERNAL: Returns the last snapshot of the elements in the collection.
getTypeClass ( )
getValues ( )
indexOf ( $element )
initialize ( ) Initializes the collection by loading its contents from the database if the collection is not yet initialized.
isDirty ( ) : boolean Gets a boolean flag indicating whether this collection is dirty which means its state needs to be synchronized with the database.
isEmpty ( )
isInitialized ( ) : boolean Checks whether this collection has been initialized.
key ( )
last ( )
map ( Closure $func )
next ( ) Moves the internal iterator position to the next element.
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
partition ( Closure $p )
remove ( $key )
removeElement ( $element )
set ( $key, $value )
setDirty ( boolean $dirty ) Sets a boolean flag, indicating whether this collection is dirty.
setInitialized ( boolean $bool ) Sets the initialized flag of the collection, forcing it into that state.
setOwner ( object $document, array $mapping ) INTERNAL: Sets the collection's owning entity together with the AssociationMapping that describes the association between the owner and the elements of the collection.
setReferences ( array $references ) Set the array of mongo database references to be used to initialize this collection.
slice ( $offset, $length = null )
takeSnapshot ( ) INTERNAL: Tells this collection to take a snapshot of its current state.
toArray ( )
unwrap ( ) Retrieves the wrapped Collection instance.

비공개 메소드들

메소드 설명
changed ( ) Marks this collection as changed/dirty.

메소드 상세

__construct() 공개 메소드

public __construct ( Doctrine\Common\Collections\Collection $coll, DocumentManager $dm, Configuration $c )
$coll Doctrine\Common\Collections\Collection
$dm DocumentManager
$c Configuration

__sleep() 공개 메소드

Called by PHP when this collection is serialized. Ensures that only the elements are properly serialized.
public __sleep ( )

add() 공개 메소드

public add ( $value )

clear() 공개 메소드

public clear ( )

clearSnapshot() 공개 메소드

INTERNAL: Clears the internal snapshot information and sets isDirty to true if the collection has elements.
public clearSnapshot ( )

contains() 공개 메소드

public contains ( $element )

containsKey() 공개 메소드

public containsKey ( $key )

count() 공개 메소드

public count ( )

current() 공개 메소드

Gets the element of the collection at the current iterator position.
public current ( )

exists() 공개 메소드

public exists ( Closure $p )
$p Closure

filter() 공개 메소드

public filter ( Closure $p )
$p Closure

first() 공개 메소드

public first ( )

forAll() 공개 메소드

public forAll ( Closure $p )
$p Closure

get() 공개 메소드

public get ( $key )

getDeleteDiff() 공개 메소드

INTERNAL: getDeleteDiff
public getDeleteDiff ( ) : array
리턴 array

getInsertDiff() 공개 메소드

INTERNAL: getInsertDiff
public getInsertDiff ( ) : array
리턴 array

getIterator() 공개 메소드

public getIterator ( )

getKeys() 공개 메소드

public getKeys ( )

getMapping() 공개 메소드

public getMapping ( )

getOwner() 공개 메소드

INTERNAL: Gets the collection owner.
public getOwner ( ) : object
리턴 object

getReferences() 공개 메소드

public getReferences ( )

getSnapshot() 공개 메소드

INTERNAL: Returns the last snapshot of the elements in the collection.
public getSnapshot ( ) : array
리턴 array The last snapshot of the elements.

getTypeClass() 공개 메소드

public getTypeClass ( )

getValues() 공개 메소드

public getValues ( )

indexOf() 공개 메소드

public indexOf ( $element )

initialize() 공개 메소드

Initializes the collection by loading its contents from the database if the collection is not yet initialized.
public initialize ( )

isDirty() 공개 메소드

Gets a boolean flag indicating whether this collection is dirty which means its state needs to be synchronized with the database.
public isDirty ( ) : boolean
리턴 boolean TRUE if the collection is dirty, FALSE otherwise.

isEmpty() 공개 메소드

public isEmpty ( )

isInitialized() 공개 메소드

Checks whether this collection has been initialized.
public isInitialized ( ) : boolean
리턴 boolean

key() 공개 메소드

public key ( )

last() 공개 메소드

public last ( )

map() 공개 메소드

public map ( Closure $func )
$func Closure

next() 공개 메소드

Moves the internal iterator position to the next element.
public next ( )

offsetExists() 공개 메소드

또한 보기: containsKey()
public offsetExists ( $offset )

offsetGet() 공개 메소드

또한 보기: get()
public offsetGet ( $offset )

offsetSet() 공개 메소드

또한 보기: add()
또한 보기: set()
public offsetSet ( $offset, $value )

offsetUnset() 공개 메소드

또한 보기: remove()
public offsetUnset ( $offset )

partition() 공개 메소드

public partition ( Closure $p )
$p Closure

remove() 공개 메소드

public remove ( $key )

removeElement() 공개 메소드

public removeElement ( $element )

set() 공개 메소드

public set ( $key, $value )

setDirty() 공개 메소드

Sets a boolean flag, indicating whether this collection is dirty.
public setDirty ( boolean $dirty )
$dirty boolean Whether the collection should be marked dirty or not.

setInitialized() 공개 메소드

Sets the initialized flag of the collection, forcing it into that state.
public setInitialized ( boolean $bool )
$bool boolean

setOwner() 공개 메소드

INTERNAL: Sets the collection's owning entity together with the AssociationMapping that describes the association between the owner and the elements of the collection.
public setOwner ( object $document, array $mapping )
$document object
$mapping array

setReferences() 공개 메소드

Set the array of mongo database references to be used to initialize this collection.
public setReferences ( array $references )
$references array

slice() 공개 메소드

public slice ( $offset, $length = null )

takeSnapshot() 공개 메소드

INTERNAL: Tells this collection to take a snapshot of its current state.
public takeSnapshot ( )

toArray() 공개 메소드

public toArray ( )

unwrap() 공개 메소드

Retrieves the wrapped Collection instance.
public unwrap ( )