Jelix 1.6.40

jDaoRecordBase
in package

Base class for all record classes generated by the dao compiler

Tags
subpackage

dao

Table of Contents

ERROR_BAD_FORMAT  = 3
ERROR_BAD_TYPE  = 2
ERROR_MAXLENGTH  = 4
ERROR_MINLENGTH  = 5
ERROR_REQUIRED  = 1
$__dao_profile  : mixed
check()  : array<string|int, mixed>|false
check values in the properties of the record, according on the dao definition
getDbProfile()  : string
getPk()  : mixed
return the value of fields corresponding to the primary key
getPrimaryKeyNames()  : array<string|int, string>
getProperties()  : array<string|int, mixed>
getSelector()  : string
save()  : int
save the record
setDbProfile()  : mixed
Sets the jDb profile used to retrieve the record
setPk()  : mixed
set values on the properties which correspond to the primary key of the record This method accept a single or many values as parameter

Constants

Properties

Methods

check()

check values in the properties of the record, according on the dao definition

public check() : array<string|int, mixed>|false
Return values
array<string|int, mixed>|false

list of errors or false if ok

getDbProfile()

public getDbProfile() : string
Tags
since
1.6.19
Return values
string

the jDb profile used to retrieve the record

getPk()

return the value of fields corresponding to the primary key

public getPk() : mixed
Tags
since
1.0b3
Return values
mixed

the value or an array of values if there is several pk

getSelector()

public abstract getSelector() : string
Return values
string

the dao selector

save()

save the record

public save() : int
Tags
since
1.4
Return values
int

1 if success (the number of affected rows). False if the query has failed.

setDbProfile()

Sets the jDb profile used to retrieve the record

public setDbProfile(string $profile) : mixed

Do not use. Used only by jDao.

Parameters
$profile : string
Tags
access

protected

Return values
mixed

setPk()

set values on the properties which correspond to the primary key of the record This method accept a single or many values as parameter

public setPk() : mixed
Return values
mixed

Search results