Database column list interface

This defines the public methods for adding database columns to a collection and retrieving the columns from the collection as a formatted list

category Database
package Formaid
author Dieter Adriaenssens
copyright 2006-2013 Dieter Adriaenssens
license GPL
link http://formaid.sourceforge.net/

 Methods

Adds a column to a collection

add(\DbColumnInterface $dbColumn) : void

Parameters

$dbColumn

\DbColumnInterface

Formaid_DbColumn object

Get formatted Database column list

getDisplayString(bool $withValue, bool $discardEmptyValue) : string
Inherited
inherited_from \DbColumnInterface::getDisplayString()

Parameters

$withValue

bool

append value to column (optional, default : true)

$discardEmptyValue

bool

discard columns with empty values (optional, default : false)

Returns

string

Set display seperator for list mode

setDisplayListSeparator(string $separator) : void

Parameters

$separator

string

string separating columns

Set display seperator for binary logic mode

setDisplayLogicSeparator(string $separator) : void

Parameters

$separator

string

string separating columns

Set display mode

setDisplayMode(string $mode, string $separator) : void
Inherited
inherited_from \DbColumnInterface::setDisplayMode()

Parameters

$mode

string

display mode : list, (binary )logic

$separator

string

string separating columns