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

Public Member Functions

 __construct ($columns=null, $name=null)
 
 setName ($name)
 
 getName ()
 
 setColumns ($columns)
 
 addColumn ($column)
 
 getColumns ()
 
 
 getExpressionData ()
 
Returns
array of array|string should return an array in the format:

array ( // a sprintf formatted string string $specification,// the values for the above sprintf formatted string array $values,// an array of equal length of the $values array, with either TYPE_IDENTIFIER or TYPE_VALUE for each value array $types, )

 

Protected Attributes

 $columnSpecification = ' (%s)'
 
 $namedSpecification = 'CONSTRAINT %s '
 
 $specification = ''
 
 $name = ''
 
 $columns = []
 

Additional Inherited Members

- Public Attributes inherited from ExpressionInterface
const TYPE_IDENTIFIER = 'identifier'
 
const TYPE_VALUE = 'value'
 
const TYPE_LITERAL = 'literal'
 
const TYPE_SELECT = 'select'
 

Constructor & Destructor Documentation

__construct (   $columns = null,
  $name = null 
)
Parameters
null | string | array$columns
null | string$name

Member Function Documentation

addColumn (   $column)
Parameters
string$column
Returns
self
getColumns ( )

Implements ConstraintInterface.

getExpressionData ( )

Returns
array of array|string should return an array in the format:

array ( // a sprintf formatted string string $specification,// the values for the above sprintf formatted string array $values,// an array of equal length of the $values array, with either TYPE_IDENTIFIER or TYPE_VALUE for each value array $types, )

Implements ExpressionInterface.

getName ( )
Returns
string
setColumns (   $columns)
Parameters
null | string | array$columns
Returns
self
setName (   $name)
Parameters
string$name
Returns
self

Member Data Documentation

$columns = []
protected
$columnSpecification = ' (%s)'
protected
$name = ''
protected
$namedSpecification = 'CONSTRAINT %s '
protected
$specification = ''
protected