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

Class: database_object

Source Location: /lib/class/database_object.abstract.php

Class Overview


database_object


Author(s):

Variables

Methods


Child classes:

Flag
Flag Class
Artist
Artist Class
Playlist
Playlist Class
Radio
Radio Class
User
User Class
Album
Album Class This is the class responsible for handling the Album object it is related to the album table in the database.
Catalog
Catalog Class This class handles all actual work in regards to the catalog, it contains functions for creating/listing/updated the catalogs.
Rating
Rating class This is an amalgamation(sp?) of code from SoundOfEmotion to track ratings for songs, albums and artists.
Song
database_object
Tag
Tag Class
Video
database_object

Class Details

[line 27]
database_object

This is a general object that is extended by all of the basic database based objects in ampache. It attempts to do some standard caching for all of the objects to cut down on the database calls




Tags:

abstract:  


[ Top ]


Class Variables

static $cache_hit =  0

[line 32]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method add_to_cache [line 96]

static void add_to_cache( $index, $id, $data)

add_to_cache

This adds the specified object to the specified index in the cache




Tags:

access:  public


Parameters:

   $index  
   $id  
   $data  

[ Top ]

static method get_from_cache [line 76]

static void get_from_cache( $index, $id)

get_from_cache

This attempts to retrive the specified object from the cache we've got here




Tags:

access:  public


Parameters:

   $index  
   $id  

[ Top ]

static method is_cached [line 63]

static void is_cached( $index, $id)

is_cached

this checks the cache to see if the specified object is there




Tags:

access:  public


Parameters:

   $index  
   $id  

[ Top ]

method get_info [line 38]

void get_info( $id, [ $table_name = ''])

get_info

retrieves the info from the database and puts it in the cache




Tags:

access:  public


Parameters:

   $id  
   $table_name  

[ Top ]


Documentation generated on Thu, 12 Feb 2009 07:59:56 +0900 by phpDocumentor 1.4.2