dbconstraint| Class | Description |
|---|---|
|
Defines a database constraint. |
dbconstraint
dbconstraint
(mixed &$schema, mixed $name, [mixed $type = "p"], [mixed $tablename = ""], [mixed $fktablename = ""], [mixed $flds = ""], [mixed $fkflds = ""], [mixed $updact = ""], [mixed $delact = ""], [mixed $match = ""], [mixed $cksrc = ""])
void
set
(mixed $type, [mixed $tablename = ""], [mixed $fktablename = ""], [mixed $flds = ""], [mixed $fkflds = ""], [mixed $updact = ""], [mixed $delact = ""], [mixed $match = ""], [mixed $cksrc = ""], [mixed $deferrable = false], [mixed $deferred = false])
mixed
$cksrc
= "" (line 264)
Check constraint source
mixed
$deferrable
= false (line 250)
True if constraint is deferrable
mixed
$deferred
= false (line 252)
True if constraint is initially deferred
mixed
$delete_action
= "" (line 260)
Action to take on delete
mixed
$fieldnames
= array() (line 254)
Array of table field names in constraint
mixed
$fk_fieldnames
= array() (line 256)
Array of referenced foreign key fieldnames
mixed
$fk_tablename
= "" (line 248)
Foreign key table name constraint refers to
mixed
$match_type
= "" (line 262)
Match type for keys
mixed
$tablename
= "" (line 246)
Name of table constraint is applied to
mixed
$type
= "" (line 244)
Type of constraint 'c' - check, 'p' - pk, 'f' - fk
mixed
$update_action
= "" (line 258)
Action to take on update
Inherited from SchemaObject
SchemaObject::$name
SchemaObject::$schema
Return SQL required to create this constraint outside the table
Return SQL required to create this as an inline table constraint
Acquires the schema from database metadata.
NB: Override this function to get schema info per DB type.
Set constraint variables.
Inherited From SchemaObject
SchemaObject::SchemaObject()
Documentation generated by phpDocumentor 1.3.0RC3