Class miDefaultDomainObject

Description

Implements interfaces:

Default domain object class

  • copyright: Copyright (c) 2007 Mirchev Ideas Ltd. All rights reserved.

Located in /model/DomainObject.php (line 27)


	
			
Variable Summary
mixed $_record
Method Summary
miDefaultDomainObject __construct ( $record)
void delete ([ $pkValue = null])
mixed get (string $name)
string getPKName ()
array getRow ()
void insert ()
void read (mixed $pkValue)
void set (string $name, mixed $value)
void setRow ( $row)
void update ()
void validate ()
Variables
mixed $_record (line 28)
  • access: protected
Methods
Constructor __construct (line 30)
  • access: public
miDefaultDomainObject __construct ( $record)
  • $record
delete (line 125)

Delete the domain object

  • access: public
void delete ([ $pkValue = null])
  • $pkValue

Implementation of:
miDomainObject::delete()
get (line 52)

Get domain object value

  • access: public
mixed get (string $name)
  • string $name
getPKName (line 41)

Return the name of the primary key of the underlying SQLRecord Used by miDefaultView

  • return: the name of the primary key
  • access: public
string getPKName ()
getRow (line 62)

Get all domain object values

  • access: public
array getRow ()
insert (line 105)

Insert the domain object as new record

  • access: public
void insert ()

Implementation of:
miDomainObject::insert()
read (line 97)

Read the domain object

  • access: public
void read (mixed $pkValue)
  • mixed $pkValue

Implementation of:
miDomainObject::read()
set (line 84)

Set domain object value

  • access: public
void set (string $name, mixed $value)
  • string $name
  • mixed $value
setRow (line 73)

Set all domain object values

  • access: public
void setRow ( $row)
  • array $row
update (line 115)

Update the domain object

  • access: public
void update ()

Implementation of:
miDomainObject::update()
validate (line 137)

Validates the object

  • throws: miException
  • access: public
void validate ()
validateOnInsert (line 147)

Validates the object for insert operation

  • throws: miException
  • access: public
void validateOnInsert ()
validateOnUpdate (line 157)

Validates the object for update operation

  • throws: miException
  • access: public
void validateOnUpdate ()

Documentation generated on Thu, 08 May 2008 16:57:26 +0300 by phpDocumentor 1.4.1