MediaSearch_Model
[ class tree: MediaSearch_Model ] [ index: MediaSearch_Model ] [ all elements ]

Class: MediaSearch_Model_AbstractMapper

Source Location: /models/AbstractMapper.php

Class Overview


This model class represents a single file with its metadata.


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Methods


Child classes:

MediaSearch_Model_FileMetaMapper
Maps the FileMeta model object to the database table object.
MediaSearch_Model_KeyWordMapper
Maps the KeyWord model object to the database table object.

Class Details

[line 37]
This model class represents a single file with its metadata.

Its required that each MApper class follows a specific naming schema: Model class name for which it mapps plus the suffix 'Mapper'.

Example: model class -> MediaSearch_Model_Foo mapper class -> MediaSearch_Model_FooMapper




Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter
see:  Zend_Application_Bootstrap_Bootstrap
abstract:  


[ Top ]


Class Methods


method count [line 128]

int count( )

Returns the count of data rows in the db table.



Tags:

access:  public


[ Top ]

method createModel [line 110]

void createModel( array $row, MediaSearch_Model_Abstract $model, MediaSearch_Model_FileMeta $fileMeta)

Sets up a given model object with the data in the row array.



Tags:

abstract:  
access:  protected


Overridden in child classes as:

MediaSearch_Model_FileMetaMapper::createModel()
Sets up a given model object with the data in the row array.
MediaSearch_Model_KeyWordMapper::createModel()
Sets up a given model object with the data in the row array.

Parameters:

array   $row  
MediaSearch_Model_FileMeta   $fileMeta  
MediaSearch_Model_Abstract   $model  

[ Top ]

method createModelFromRowSet [line 120]

array createModelFromRowSet( $resultSet)

Creates model objectes from multiple rows.



Tags:

abstract:  
access:  protected


Overridden in child classes as:

MediaSearch_Model_FileMetaMapper::createModelFromRowSet()
Creates model objectes from multiple rows.
MediaSearch_Model_KeyWordMapper::createModelFromRowSet()
Creates model objectes from multiple rows.

Parameters:

array   $resultSet  

[ Top ]

method fetchAll [line 138]

fetchAll( [ $limit = null], [ $offset = null])



Tags:

access:  public


Parameters:

   $limit  
   $offset  

[ Top ]

method getDbTable [line 74]

MediaSearch_Model_DbTable_Abstract getDbTable( )

Returns the atabase table gateway object.

Constructs a new one if no one is set.




Tags:

access:  public


[ Top ]

method setDbTable [line 51]

MediaSearch_Model_AbstractMapper setDbTable( mixed $dbTable)

Sets the database table gateway object.

You can provide a class name as string or an object.

The objects should be of the class returned by getTableClassName().




Tags:

access:  public


Parameters:

mixed   $dbTable  

[ Top ]


Documentation generated on Mon, 17 Aug 2009 14:51:37 +0200 by phpDocumentor 1.4.2