Public Member Functions | |
__construct ($name, $vendorInfo=array()) | |
getName () | |
Get foreign key name. | |
addReference (ColumnInfo $local, ColumnInfo $foreign, $onDelete=self::NONE, $onUpdate=self::NONE) | |
Adds a foreign-local mapping. | |
getReferences () | |
Gets the local-foreign column mapping. | |
getVendorSpecificInfo () | |
Get vendor specific optional information for this primary key. | |
toString () | |
Public Attributes | |
const | NONE = "" |
const | NOACTION = "NO ACTION" |
const | CASCADE = "CASCADE" |
const | RESTRICT = "RESTRICT" |
const | SETDEFAULT = "SET DEFAULT" |
const | SETNULL = "SET NULL" |
Protected Attributes | |
$vendorSpecificInfo = array() | |
Private Attributes | |
$name | |
$references = array() |
Definition at line 30 of file ForeignKeyInfo.php.
ForeignKeyInfo::__construct | ( | $ | name, | |
$ | vendorInfo = array() | |||
) |
string | $name The name of the foreign key. |
Definition at line 52 of file ForeignKeyInfo.php.
References $name.
00053 { 00054 $this->name = $name; 00055 $this->vendorSpecificInfo = $vendorInfo; 00056 }
ForeignKeyInfo::addReference | ( | ColumnInfo $ | local, | |
ColumnInfo $ | foreign, | |||
$ | onDelete = self::NONE , |
|||
$ | onUpdate = self::NONE | |||
) |
Adds a foreign-local mapping.
ColumnInfo | $local | |
ColumnInfo | $foreign |
Definition at line 72 of file ForeignKeyInfo.php.
ForeignKeyInfo::getName | ( | ) |
ForeignKeyInfo::getReferences | ( | ) |
Gets the local-foreign column mapping.
Definition at line 81 of file ForeignKeyInfo.php.
ForeignKeyInfo::getVendorSpecificInfo | ( | ) |
Get vendor specific optional information for this primary key.
Definition at line 90 of file ForeignKeyInfo.php.
ForeignKeyInfo::toString | ( | ) |
ForeignKeyInfo::$name [private] |
ForeignKeyInfo::$references = array() [private] |
Definition at line 33 of file ForeignKeyInfo.php.
ForeignKeyInfo::$vendorSpecificInfo = array() [protected] |
Definition at line 39 of file ForeignKeyInfo.php.
const ForeignKeyInfo::CASCADE = "CASCADE" |
Definition at line 44 of file ForeignKeyInfo.php.
Referenced by PgSQLTableInfo::initForeignKeys(), OCI8TableInfo::initForeignKeys(), and MySQLTableInfo::initForeignKeys().
const ForeignKeyInfo::NOACTION = "NO ACTION" |
Definition at line 43 of file ForeignKeyInfo.php.
const ForeignKeyInfo::NONE = "" |
Definition at line 42 of file ForeignKeyInfo.php.
Referenced by PgSQLTableInfo::initForeignKeys(), and OCI8TableInfo::initForeignKeys().
const ForeignKeyInfo::RESTRICT = "RESTRICT" |
Definition at line 45 of file ForeignKeyInfo.php.
Referenced by PgSQLTableInfo::initForeignKeys(), and MySQLTableInfo::initForeignKeys().
const ForeignKeyInfo::SETDEFAULT = "SET DEFAULT" |
const ForeignKeyInfo::SETNULL = "SET NULL" |
Definition at line 47 of file ForeignKeyInfo.php.
Referenced by PgSQLTableInfo::initForeignKeys(), OCI8TableInfo::initForeignKeys(), and MySQLTableInfo::initForeignKeys().