Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
ConstraintObject Class Reference

Public Member Functions

 __construct ($name, $tableName, $schemaName=null)
 Constructor.
 
 setName ($name)
 Set name.
 
 getName ()
 Get name.
 
 setSchemaName ($schemaName)
 Set schema name.
 
 getSchemaName ()
 Get schema name.
 
 getTableName ()
 Get table name.
 
 setTableName ($tableName)
 Set table name.
 
 setType ($type)
 Set type.
 
 getType ()
 Get type.
 
 hasColumns ()
 
 getColumns ()
 Get Columns.
 
 setColumns (array $columns)
 Set Columns.
 
 getReferencedTableSchema ()
 Get Referenced Table Schema.
 
 setReferencedTableSchema ($referencedTableSchema)
 Set Referenced Table Schema.
 
 getReferencedTableName ()
 Get Referenced Table Name.
 
 setReferencedTableName ($referencedTableName)
 Set Referenced Table Name.
 
 getReferencedColumns ()
 Get Referenced Columns.
 
 setReferencedColumns (array $referencedColumns)
 Set Referenced Columns.
 
 getMatchOption ()
 Get Match Option.
 
 setMatchOption ($matchOption)
 Set Match Option.
 
 getUpdateRule ()
 Get Update Rule.
 
 setUpdateRule ($updateRule)
 Set Update Rule.
 
 getDeleteRule ()
 Get Delete Rule.
 
 setDeleteRule ($deleteRule)
 Set Delete Rule.
 
 getCheckClause ()
 Get Check Clause.
 
 setCheckClause ($checkClause)
 Set Check Clause.
 
 isPrimaryKey ()
 Is primary key.
 
 isUnique ()
 Is unique key.
 
 isForeignKey ()
 Is foreign key.
 
 isCheck ()
 Is foreign key.
 

Protected Attributes

 $name = null
 
 $tableName = null
 
 $schemaName = null
 
 $type = null
 
 $columns = []
 
 $referencedTableSchema
 
 $referencedTableName
 
 $referencedColumns
 
 $matchOption
 
 $updateRule
 
 $deleteRule
 
 $checkClause
 

Constructor & Destructor Documentation

__construct (   $name,
  $tableName,
  $schemaName = null 
)

Constructor.

Parameters
string$name
string$tableName
string$schemaName

Member Function Documentation

getCheckClause ( )

Get Check Clause.

Returns
string
getColumns ( )

Get Columns.

Returns
string[]
getDeleteRule ( )

Get Delete Rule.

Returns
string
getMatchOption ( )

Get Match Option.

Returns
string
getName ( )

Get name.

Returns
string
getReferencedColumns ( )

Get Referenced Columns.

Returns
string[]
getReferencedTableName ( )

Get Referenced Table Name.

Returns
string
getReferencedTableSchema ( )

Get Referenced Table Schema.

Returns
string
getSchemaName ( )

Get schema name.

Returns
string
getTableName ( )

Get table name.

Returns
string
getType ( )

Get type.

Returns
string
getUpdateRule ( )

Get Update Rule.

Returns
string
hasColumns ( )
isCheck ( )

Is foreign key.

Returns
bool
isForeignKey ( )

Is foreign key.

Returns
bool
isPrimaryKey ( )

Is primary key.

Returns
bool
isUnique ( )

Is unique key.

Returns
bool
setCheckClause (   $checkClause)

Set Check Clause.

Parameters
string$checkClause
Returns
ConstraintObject
setColumns ( array  $columns)

Set Columns.

Parameters
string[]$columns
Returns
ConstraintObject
setDeleteRule (   $deleteRule)

Set Delete Rule.

Parameters
string$deleteRule
Returns
ConstraintObject
setMatchOption (   $matchOption)

Set Match Option.

Parameters
string$matchOption
Returns
ConstraintObject
setName (   $name)

Set name.

Parameters
string$name
setReferencedColumns ( array  $referencedColumns)

Set Referenced Columns.

Parameters
string[]$referencedColumns
Returns
ConstraintObject
setReferencedTableName (   $referencedTableName)

Set Referenced Table Name.

Parameters
string$referencedTableName
Returns
ConstraintObject
setReferencedTableSchema (   $referencedTableSchema)

Set Referenced Table Schema.

Parameters
string$referencedTableSchema
Returns
ConstraintObject
setSchemaName (   $schemaName)

Set schema name.

Parameters
string$schemaName
setTableName (   $tableName)

Set table name.

Parameters
string$tableName
Returns
ConstraintObject
setType (   $type)

Set type.

Parameters
string$type
setUpdateRule (   $updateRule)

Set Update Rule.

Parameters
string$updateRule
Returns
ConstraintObject

Member Data Documentation

$checkClause
protected
$columns = []
protected
$deleteRule
protected
$matchOption
protected
$name = null
protected
$referencedColumns
protected
$referencedTableName
protected
$referencedTableSchema
protected
$schemaName = null
protected
$tableName = null
protected
$type = null
protected
$updateRule
protected