Class miViewMapperController

Description

The view mapper controller class

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

Located in /model/ViewMapper.php (line 15)


	
			
Direct descendents
Class Description
miViewMapperControllerDefault Default View to Domain Object Mapper Controller
Variable Summary
mixed $_view
Method Summary
miViewMapperController __construct (miView $view, miRecord $record)
void addViewMapper (string $viewMapperName, miViewMapper $viewMapper)
void callViewMappers (string $operation)
void delete ()
miViewMapper getViewMapper ([string $viewMapperName = ''])
void insert ()
void read ()
void update ()
void updateSubmittedForm (miWebForm $webForm)
Variables
mixed $_view (line 16)
  • access: protected
mixed $_viewMappers = array() (line 17)
  • access: protected
Methods
Constructor __construct (line 25)

Constructs the object

  • access: public
miViewMapperController __construct (miView $view, miRecord $record)
  • miView $view
  • miRecord $record

Redefined in descendants as:
addViewMapper (line 63)

Adds new view mapper object

  • access: public
void addViewMapper (string $viewMapperName, miViewMapper $viewMapper)
  • string $viewMapperName: view mapper name
  • miViewMapper $viewMapper: the view mapper object
callViewMappers (line 95)

Call all view mappers

  • access: protected
void callViewMappers (string $operation)
  • string $operation: 'read', 'insert', 'update', 'preDelete' or 'delete'
delete (line 114)
  • access: public
void delete ()
getView (line 52)

Return the view

  • return: the view object
  • access: public
miView getView ()
getViewMapper (line 74)

Returns the view mapper with name $viewMapperName

  • return: object
  • access: public
miViewMapper getViewMapper ([string $viewMapperName = ''])
  • string $viewMapperName: the view mapper name (optional). If not given returns the default view mapper
insert (line 106)
  • access: public
void insert ()
read (line 101)
  • access: public
void read ()
setupViewMappers (line 35)

Create all view mapper objects

  • access: protected
void setupViewMappers ()
update (line 110)
  • access: public
void update ()
updateSubmittedForm (line 84)

Updates the form with the newly submitted values

  • access: public
void updateSubmittedForm (miWebForm $webForm)

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