jDaoDbMapper

It allows to create tables corresponding to a dao file.

since 1.6.16
package

jelix

Methods

jDaoDbMapper constructor.

__construct(string $profile = '') 

Arguments

$profile

string

the jdb profile

createColumnFromProperty

createColumnFromProperty(\jDaoProperty $property) 

Arguments

$property

\jDaoProperty

createTableFromDao

createTableFromDao( $selectorStr) : \jDbTable

Arguments

$selectorStr

Response

\jDbTable

getParser

getParser(\jSelectorDao $selector) 

Arguments

$selector

\jSelectorDao

insertDaoData

insertDaoData(string $selectorStr, array<mixed,string> $properties, array<mixed,mixed[]> $data, integer $option) : integer

Arguments

$selectorStr

string

the dao for which we want to insert data

$properties

array<mixed,string>

list of properties for which data are given

$data

array<mixed,mixed[]>

the data. each row is an array of values. Values are in the same order as $properties

$option

integer

one of jDbTools::IBD_* const

Response

integer

number of records inserted/updated

Properties

connection

connection : \jDbConnection
var

Type(s)

\jDbConnection

profile

profile : 

Type(s)