Class jDaoRecordBase

Description

Base class for all record classes generated by the dao compiler

  • abstract:

Located in /dao/jDaoRecordBase.class.php (line 19)


	
			
Class Constant Summary
Method Summary
array|false check ()
mixed getPk ()
array getProperties ()
void getSelector ()
integer save ()
void setPk ()
Methods
check (line 49)

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

  • return: list of errors or false if ok
  • access: public
array|false check ()
getPk (line 136)

return the value of fields corresponding to the primary key

  • return: the value or an array of values if there is several pk
  • since: 1.0b3
  • access: public
mixed getPk ()
getPrimaryKeyNames (line 43)
array getPrimaryKeyNames ()
getProperties (line 36)
array getProperties ()
getSelector (line 30)

return the dao selector

  • abstract:
  • access: public
void getSelector ()
save (line 154)

save the record

  • return: 1 if success (the number of affected rows). False if the query has failed.
  • since: 1.4
integer save ()
setPk (line 115)

set values on the properties which correspond to the primary

key of the record This method accept a single or many values as parameter

  • access: public
void setPk ()
Class Constants
ERROR_BAD_FORMAT = 3 (line 23)
ERROR_BAD_TYPE = 2 (line 22)
ERROR_MAXLENGTH = 4 (line 24)
ERROR_MINLENGTH = 5 (line 25)
ERROR_REQUIRED = 1 (line 21)

Documentation generated on Mon, 26 Oct 2015 21:52:55 +0100 by phpDocumentor 1.4.3