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

Class: MediaSearch_Model_FileMetaMapper

Source Location: /models/FileMetaMapper.php

Class Overview

MediaSearch_Model_AbstractMapper
   |
   --MediaSearch_Model_FileMetaMapper

Maps the FileMeta model object to the database table object.


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Methods


Inherited Methods

Class: MediaSearch_Model_AbstractMapper

MediaSearch_Model_AbstractMapper::count()
Returns the count of data rows in the db table.
MediaSearch_Model_AbstractMapper::createModel()
Sets up a given model object with the data in the row array.
MediaSearch_Model_AbstractMapper::createModelFromRowSet()
Creates model objectes from multiple rows.
MediaSearch_Model_AbstractMapper::fetchAll()
MediaSearch_Model_AbstractMapper::getDbTable()
Returns the atabase table gateway object.
MediaSearch_Model_AbstractMapper::setDbTable()
Sets the database table gateway object.

Class Details

[line 28]
Maps the FileMeta model object to the database table object.



Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter


[ Top ]


Class Methods


method createModel [line 83]

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:

todo:  setOptions benutzen.
access:  protected


Overrides MediaSearch_Model_AbstractMapper::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 102]

array createModelFromRowSet( $resultSet)

Creates model objectes from multiple rows.



Tags:

access:  protected


Overrides MediaSearch_Model_AbstractMapper::createModelFromRowSet() (Creates model objectes from multiple rows.)

Parameters:

array   $resultSet  

[ Top ]

method find [line 62]

void find( int $id, MediaSearch_Model_FileMeta $fileMeta)

Finds an file meta in the persistant layer by its id an loads it in the given model object.



Tags:

access:  public


Parameters:

int   $id  
MediaSearch_Model_FileMeta   $fileMeta  

[ Top ]

method findByIdAndTypes [line 123]

array findByIdAndTypes( $primaryKeys, [ $types = null])

Finds data by id. You can optionaly provide type ids.



Tags:

access:  public


Parameters:

array   $primaryKeys  
array   $types  

[ Top ]

method save [line 35]

void save( MediaSearch_Model_FileMeta $fileMeta)

Saves the given model object persistent.



Tags:

access:  public


Parameters:

MediaSearch_Model_FileMeta   $fileMeta  

[ Top ]


Documentation generated on Mon, 17 Aug 2009 14:52:53 +0200 by phpDocumentor 1.4.2