jDaoRecordBase

Base class for all record classes generated by the dao compiler

package

jelix

subpackage

dao

Methods

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

check() : array|false

Response

array|false

list of errors or false if ok

getDbProfile

getDbProfile() : string
since 1.6.19

Response

string

the jDb profile used to retrieve the record

return the value of fields corresponding to the primary key

getPk() : mixed
since 1.0b3

Response

mixed

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

getPrimaryKeyNames

getPrimaryKeyNames() : array
abstract
see \jDaoFactoryBase::getPrimaryKeyNames()
since 1.0b3

Response

array

list of properties name which contains primary keys

getProperties

getProperties() : array
abstract
see \jDaoFactoryBase::getProperties()

Response

array

informations on all properties

getSelector

getSelector() : string
abstract

Response

string

the dao selector

save the record

save() : integer
since 1.4

Response

integer

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

Sets the jDb profile used to retrieve the record

setDbProfile(string $profile) 

Do not use. Used only by jDao.

access

protected

Arguments

$profile

string

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

setPk() 

Constants

ERROR_REQUIRED

ERROR_REQUIRED

ERROR_BAD_TYPE

ERROR_BAD_TYPE

ERROR_BAD_FORMAT

ERROR_BAD_FORMAT

ERROR_MAXLENGTH

ERROR_MAXLENGTH

ERROR_MINLENGTH

ERROR_MINLENGTH

Properties

__dao_profile

__dao_profile : 

Type(s)