Class: Doctrine_Schema_Table

Source Location: /Doctrine/Schema/Table.php

Class Doctrine_Schema_Table

Class Overview

Implements interfaces:

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

class Doctrine_Schema_Table

Holds information on a database table

Located in /Doctrine/Schema/Table.php [line 40]

Doctrine_Object
   |
   --Doctrine_Access
      |
      --Doctrine_Schema_Object
         |
         --Doctrine_Schema_Table
Author(s): Information Tags:
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Property Summary
mixed   $definition  
mixed   $relations   Relations this table has with others. An array of Doctrine_Schema_Relation

[ Top ]
Method Summary
Doctrine_Schema_Table   addColumn()  
Doctrine_Schema_Column|false   getColumn()  
array   getColumns()   returns an array of Doctrine_Schema_Column objects
array   getRelations()   Return all the relations this table has with others
bool   isValid()  
void   setRelation()   Adds a relation between a local column and a 2nd table / column

[ Top ]
Properties
mixed   $definition = array('name' => '',
'check' => '',
'charset' => '',
'description' => '')
[line 43]
API Tags:
Access:  protected


Redefinition of:
Doctrine_Schema_Object::$definition

[ Top ]
mixed   $relations = array() [line 50]

Relations this table has with others. An array of Doctrine_Schema_Relation

API Tags:
Access:  private


[ Top ]
Methods
addColumn  [line 85]

  Doctrine_Schema_Table addColumn( Doctrine_Schema_Column $column  )

Parameters:
Doctrine_Schema_Column   $column:  column

API Tags:
Access:  public


[ Top ]
getColumn  [line 72]

  Doctrine_Schema_Column|false getColumn( $name  )

Parameters:
   $name: 

API Tags:
Access:  public


[ Top ]
getColumns  [line 65]

  array getColumns( )

returns an array of Doctrine_Schema_Column objects


API Tags:
Access:  public


[ Top ]
getRelations  [line 107]

  array getRelations( )

Return all the relations this table has with others


API Tags:
Return:  Array of Doctrine_Schema_Relation
Access:  public


[ Top ]
isValid  [line 56]

  bool isValid( )


API Tags:
Access:  public


[ Top ]
setRelation  [line 99]

  void setRelation( Doctrine_Schema_Relation $relation  )

Adds a relation between a local column and a 2nd table / column

Parameters:
Doctrine_Schema_Relation   $relation:  Relation

API Tags:
Access:  public


[ Top ]