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

Class: AbstractDbApplication

Source Location: /console/AbstractDbApplication.php

Class Overview

Console_Application_Abstract
   |
   --AbstractDbApplication

This basic console application provides the ability to bootstrap the Zend_Db resource. Derive this class to use the applications db resource (see application/configs/application.ini).


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Variables

Methods


Child classes:

CreateTablesApplication
Creates the two neccessary tables FileMeta and KeyWord.
IndexerApplication
This application generates the keyword index by the information found in the FileMeta table.
ScannerApplication
Scanns the given directory recursivle and gathers file meta informations.

Class Details

[line 55]
This basic console application provides the ability to bootstrap the Zend_Db resource. Derive this class to use the applications db resource (see application/configs/application.ini).



Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter
see:  Console_Application_Abstract
abstract:  
uses:  Console_Exception
uses:  Console_Application_Abstract
uses:  Zend_Application


[ Top ]


Class Variables

$dbName =

[line 70]

The datavase name the database resource is configured for.



Tags:

access:  protected

Type:   string


[ Top ]

$dbResource =

[line 62]

The database resource object.



Tags:

access:  protected

Type:   Zend_Application_Resource_Db


[ Top ]



Class Methods


method onError [line 104]

void onError( mixed $errorData)

If verbosity is given (by option -v) exception messages, errormessgaes or given variables are echoed to the stdout.



Tags:

access:  protected


Parameters:

mixed   $errorData  

[ Top ]

method setUp [line 79]

void setUp( )

Bootstraps a Zend_Application bject with the config from APPLICATION_PATH . '/configs/application.ini'. Loads the database resource and database name.



Tags:

access:  protected


[ Top ]

method signalInt [line 124]

void signalInt( int $signal)

Aborts the script if ctrl + c is pressed.



Tags:

access:  public


Parameters:

int   $signal  

[ Top ]

method tearDown [line 93]

void tearDown( )

Resets the database resource object to null.



Tags:

access:  protected


Overridden in child classes as:

ScannerApplication::tearDown()

[ Top ]


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