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

Class: MediaSearch_Model_Abstract

Source Location: /models/Abstract.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_FileMeta
This model class represents a single file with its metadata.
MediaSearch_Model_KeyWord
This model class represents a single keyword with file meta ids to which files its associated..

Class Details

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



Tags:

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


[ Top ]


Class Methods


constructor __construct [line 51]

MediaSearch_Model_Abstract __construct( [ $options = null])

Can take a associatove array with initial values.



Tags:

access:  public


Parameters:

array   $options  

[ Top ]

method count [line 256]

int count( )

Counts how much objects are persistent available.



Tags:

access:  public


[ Top ]

method fetchAll [line 246]

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

Fetches all objects and returns in an array.

You can provide an optional limit and offset.




Tags:

access:  public


Parameters:

int   $limit  
int   $offset  

[ Top ]

method find [line 231]

MediaSearch_Model_Abstract find( int $id)

Finds a object by the id and loads itself.



Tags:

access:  public


Parameters:

int   $id  

[ Top ]

method getId [line 63]

int getId( )

Returns the unique id.



Tags:

access:  public


[ Top ]

method getMapper [line 203]

MediaSearch_Model_AbstractMapper getMapper( )

Returns the database mappper obejct.



Tags:

access:  public


[ Top ]

method save [line 218]

MediaSearch_Model_Abstract save( )

Save the model object persistent.



Tags:

access:  public


[ Top ]

method setId [line 74]

MediaSearch_Model_FileMeta setId( int $id)

Sets the unique id. This id need to be unique!



Tags:

access:  public


Parameters:

int   $id  

[ Top ]

method setMapper [line 183]

MediaSearch_Model_Abstract setMapper( MediaSearch_Model_AbstractMapper $mapper)

Sets the database mappper obejct.



Tags:

access:  public


Parameters:


[ Top ]

method setOptions [line 127]

self setOptions( $options)

Sets the object by an associative option array.



Tags:

access:  public


Parameters:

array   $options  

[ Top ]

method __get [line 110]

void __get( string $name, mixed $value)

Set interceptor to access model propertoes.



Tags:

todo:  remove this methods we use explicit setters
throws:  Exception On invalid name.
access:  public


Parameters:

string   $name  
mixed   $value  

[ Top ]

method __set [line 90]

void __set( string $name, mixed $value)

Set interceptor to access model propertoes.



Tags:

todo:  remove this methods we use explicit setters
throws:  Exception On invalid name.
access:  public


Parameters:

string   $name  
mixed   $value  

[ Top ]


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