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

Class: IndexerApplication

Source Location: /console/IndexerApplication.php

Class Overview

Console_Application_Abstract
   |
   --AbstractDbApplication
      |
      --IndexerApplication

This application generates the keyword index by the information found in the FileMeta table.


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Constants

Methods


Inherited Variables

Inherited Methods

Class: AbstractDbApplication

AbstractDbApplication::onError()
If verbosity is given (by option -v) exception messages, errormessgaes or given variables are echoed to the stdout.
AbstractDbApplication::setUp()
Bootstraps a Zend_Application bject with the config from APPLICATION_PATH . '/configs/application.ini'. Loads the database resource and database name.
AbstractDbApplication::signalInt()
Aborts the script if ctrl + c is pressed.
AbstractDbApplication::tearDown()
Resets the database resource object to null.

Class Details

[line 60]
This application generates the keyword index by the information found in the FileMeta table.



Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter
see:  AbstractDbApplication
abstract:  
uses:  MediaSearch_Model_FileMeta
uses:  MediaSearch_Index_KeyWords
uses:  MediaSearch_Log


[ Top ]


Class Methods


method findConsoleParameters [line 81]

bool findConsoleParameters( )

Checks for the option -c. If set the existing index will be deleted: @see IndexerApplication::$clearIndexTable



Tags:

see:  Console_Application_Abstract::findConsoleParameters()
access:  protected


[ Top ]

method getHelpMessage [line 190]

void getHelpMessage( [ $author = 'Sven Strittmatter'], [ $email = 'ich@weltraumschaf.de'])



Tags:

see:  Console_Application_Abstract::getHelpMessage()
access:  public


Parameters:

   $author  
   $email  

[ Top ]

method getUsage [line 183]

void getUsage( [ $options = null])



Tags:

see:  Console_Application_Abstract::getUsage()
access:  public


Parameters:

   $options  

[ Top ]

method run [line 102]

void run( )

Reads the FileMeta table information in chunks by 100 data rows and processes them. After that the generated index is saved to the KeyWord table.



Tags:

access:  protected


[ Top ]


Class Constants

TRACE_LELVEL =  6

[line 61]


[ Top ]



Documentation generated on Mon, 17 Aug 2009 14:53:12 +0200 by phpDocumentor 1.4.2