Class: Doctrine_Table_Repository

Source Location: /Doctrine/Table/Repository.php

Class Doctrine_Table_Repository

Class Overview

Implements interfaces:

  • Countable (internal interface)
  • IteratorAggregate (internal interface)

Doctrine_Repository each record is added into Doctrine_Repository at the same time they are created, loaded from the database or retrieved from the cache

Located in /Doctrine/Table/Repository.php [line 34]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Property Summary
array   $registry  
object Doctrine_Table   $table  

[ Top ]
Method Summary
Doctrine_Table_Repository   __construct()   constructor
boolean   add()   add
void   contains()   contains
integer   count()   count
boolean   evict()  
integer   evictAll()  
void   get()   get
ArrayIterator   getIterator()   getIterator
object Doctrine_Table   getTable()   getTable
void   loadAll()   loadAll

[ Top ]
Properties
array   $registry = array() [line 45]
API Tags:
Access:  private


[ Top ]
object Doctrine_Table   $table [line 39]
API Tags:
Access:  private


[ Top ]
Methods
Constructor __construct  [line 51]

  Doctrine_Table_Repository __construct( Doctrine_Table $table  )

constructor

Parameters:
Doctrine_Table   $table: 

API Tags:
Access:  public


[ Top ]
add  [line 70]

  boolean add( Doctrine_Record $record  )

add

Parameters:
Doctrine_Record   $record:  record to be added into registry

API Tags:
Access:  public


[ Top ]
contains  [line 139]

  void contains( integer $oid  )

contains

Parameters:
integer   $oid:  object identifier

API Tags:
Access:  public


[ Top ]
count  [line 98]

  integer count( )

count

Doctrine_Registry implements interface Countable


API Tags:
Return:  the number of records this registry has
Access:  public


Implementation of:
Countable::count

[ Top ]
evict  [line 106]

  boolean evict( integer $oid  )

Parameters:
integer   $oid:  object identifier

API Tags:
Return:  whether ot not the operation was successful
Access:  public


[ Top ]
evictAll  [line 117]

  integer evictAll( )


API Tags:
Return:  number of records evicted
Access:  public


[ Top ]
get  [line 86]

  void get( integer $oid  )

get

Parameters:
integer   $oid: 

API Tags:
Access:  public

Information Tags:
Throws:  Doctrine_Table_Repository_Exception

[ Top ]
getIterator  [line 131]

  ArrayIterator getIterator( )

getIterator


API Tags:
Access:  public


Implementation of:
IteratorAggregate::getIterator

[ Top ]
getTable  [line 60]

  object Doctrine_Table getTable( )

getTable


API Tags:
Access:  public


[ Top ]
loadAll  [line 147]

  void loadAll( )

loadAll


API Tags:
Access:  public


[ Top ]