Class RepositoryImageCache

Description

This cache management class is something of a hack, especially in how it

gets the database index from the repository manager. It should be reworked to make use of its own configuration and not reference the repository tables, though this would require the addition of a modification time part to the FILE RecordStructure as well.

  • version: $Id: viewfile.act.php,v 1.14 2007/09/19 14:04:56 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College
  • since: 2/13/06

Located in /polyphony/main/modules/repository/viewfile.act.php (line 206)


	
			
Method Summary
object RepositoryImageCache (object Id $id, integer $size, boolean $websafe, ref $parts)
string getCachedFileName ()
string getCachedImageData ()
string getCachedMimeType ()
integer getDBIndex ()
integer getMimeKey (string $mimeType)
boolean isCacheUpToDate ()
string readCache ()
void writeCache ()
Methods
Constructor RepositoryImageCache (line 219)

Constructor

  • since: 2/13/06
  • access: public
object RepositoryImageCache (object Id $id, integer $size, boolean $websafe, ref $parts)
  • object Id $id
  • integer $size
  • boolean $websafe
  • ref $parts: array $parts
getCachedFileName (line 263)

Answer the filename of the cached image

  • since: 2/13/06
  • access: public
string getCachedFileName ()
getCachedImageData (line 234)

Awswer the cached data (updating the cache if necessary).

  • since: 2/13/06
  • access: public
string getCachedImageData ()
getCachedMimeType (line 249)

Awswer the cached data mime-type.

  • since: 2/13/06
  • access: public
string getCachedMimeType ()
getDBIndex (line 396)

Answer the db index to use

  • since: 2/13/06
  • access: public
integer getDBIndex ()
getMimeKey (line 410)

Answer the mime type key

  • since: 2/13/06
  • access: public
integer getMimeKey (string $mimeType)
  • string $mimeType
isCacheUpToDate (line 283)

Answer true if the cache is up to date.

  • since: 2/13/06
  • access: public
boolean isCacheUpToDate ()
readCache (line 315)

Answer the cached data

  • since: 2/13/06
  • access: public
string readCache ()
writeCache (line 338)

Write the cache

  • since: 2/13/06
  • access: public
void writeCache ()

Documentation generated on Wed, 19 Sep 2007 10:27:46 -0400 by phpDocumentor 1.3.0RC3