SourceForge.net LogoPHPGallue
[ class tree: libgallue ] [ index: libgallue ] [ all elements ]

Class: GALGallery

Source Location: /libgallue/gallery.inc.php

Class Overview




Author(s):

Variables

Methods


Child classes:

GALGlobals
Extend GALGallery with a GALGlobalvars reference.

Class Details

[line 39]


Tags:

todo:  Add class GALFolder which can contain users, groups, categories, films, series, images, comments and folders.
todo:  Implement readonly mode.
todo:  Write maintainace utility that e.g. deletes orphan cache entries and checks the database for inconsistencies.
todo:  Try to speed up the whole system.
todo:  Add correct visible() methods to tables where necessary (e.g. node.inc.php)
todo:  Documentate all exceptions that are thrown


[ Top ]


Class Variables

$config =

[line 41]



Tags:

access:  public

Type:   mixed


[ Top ]

$configPath =

[line 42]



Tags:

access:  protected

Type:   mixed


[ Top ]

$database =

[line 40]



Tags:

access:  public

Type:   mixed


[ Top ]

$tmpfiles = array()

[line 43]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method unlinkRecursive [line 83]

static void unlinkRecursive( $path, [ $result = true])



Parameters:

   $path  
   $result  

[ Top ]

constructor __construct [line 44]

GALGallery __construct( $configPath)



Overridden in child classes as:

GALGlobals::__construct()
Initializes.

Parameters:

   $configPath  

[ Top ]

destructor __destruct [line 78]

void __destruct( )



[ Top ]

method addTemporaryFile [line 137]

void addTemporaryFile( $name)



Parameters:

   $name  

[ Top ]

method buildCategories [line 210]

void buildCategories( string $libgallue)

Constructs the categories table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildComments [line 226]

void buildComments( string $libgallue)

Constructs the comments table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildFilms [line 202]

void buildFilms( string $libgallue)

Constructs the films table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildGroups [line 218]

void buildGroups( string $libgallue)

Constructs the groups table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildHelp [line 250]

void buildHelp( string $libgallue)

Constructs the help table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildImages [line 170]

void buildImages( string $libgallue)

Constructs the images table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildInstances [line 178]

void buildInstances( string $libgallue)

Constructs the instacnes table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildJobs [line 186]

void buildJobs( string $libgallue)

Constructs the jobs table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildLogins [line 242]

void buildLogins( string $libgallue)

Constructs the logins table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildNodes [line 266]

void buildNodes( string $libgallue)

Constructs the nodes table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildSeries [line 194]

void buildSeries( string $libgallue)

Constructs the series table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildTokens [line 234]

void buildTokens( string $libgallue)

Constructs the tokens table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method buildUsers [line 258]

void buildUsers( string $libgallue)

Constructs the users table.



Tags:

access:  protected


Parameters:

string   $libgallue   The libgallue include directory

[ Top ]

method guessMIME [line 292]

string guessMIME( string $path)

Guesses the MIME type of the given file.

This method uses the 'file' program to guess the MIME type of the specified file.




Tags:

return:  MIME type
throws:  GAL_EGallery


Parameters:

string   $path  

[ Top ]

method processJobs [line 120]

void processJobs( )

Checks if there are jobs to process and executes them if necessary.



[ Top ]

method __get [line 158]

void __get( string $field)

Magic method to access proeprties.

Class declarations are loaded dynamically when the corresponding property of gallery is requested. This works because all methods in libgallery access tables through a reference to a gallery object. The getter method then sets the property inside gallery, so future requests do not lead to a call of __get, but return the (now existing) property. Tricky, eh? ;)




Parameters:

string   $field   The name of a property

[ Top ]


Documentation generated on Wed, 16 Aug 2006 15:35:59 +0200 by phpDocumentor 1.3.0RC6