Class: papaya_installer

Quellcode Position: Program_Root/papaya_installer.php

Class papaya_installer

Class Overview
Inherited Properties And Methods
Inherited Properties Inherited Methods

Abgeleitet von base_db

base_db::$dbobj_name
base_db::$dbsocket
base_db::$db_obj
base_db::$msgs

Abgeleitet von base_db

base_db::createDBObject()
Create data base object(PEAR)
base_db::db_addField()
Interface function: insert field
base_db::db_addIndex()
Interface function: insert index
base_db::db_changeField()
Interface function: change field
base_db::db_changeIndex()
Interface function: change index
base_db::db_connect()
Connect to data base object
base_db::db_createTable()
Interface function: create given table
base_db::db_deleteRecord()
Interface function: delete database record
base_db::db_deleteRecords()
Interface function: delete records
base_db::db_dropField()
Interface function: delete field
base_db::db_dropIndex()
Interface function: delete index
base_db::db_emptyTable()
Interface function: delete ALL data in this table
base_db::db_getSQLSource()
DBMS spezific SQL source
base_db::db_insertRecord()
Interface function: create new record, return ID, set default values
base_db::db_insertRecords()
Interface function: insert records
base_db::db_query()
Interface function: submit database query
base_db::db_queryFmt()
Interface function: escape params and submit query
base_db::db_queryTableNames()
Interface function: delete all table names
base_db::db_queryTableStructure()
Interface function: table structur returned as array
base_db::db_updateRecord()
Interface function: change data record
base_db::db_updateRecords()
Interface function: change data records
base_db::escapeStr()
Store string in sql for use

Abgeleitet von base_object

base_object::addmsg()
Adds a message in the message object.
base_object::createPluginObject()
Create plugin object
base_object::debug()
Show the debug of the variable &$var
base_object::encodeQueryString()
Encode query string
base_object::escapeForFilename()
Escape chars in a string to use it in a filename
base_object::getAbsoluteURL()
Return absolute URL
base_object::getBaseLink()
Get base link
base_object::getBasePath()
get base path to current script
base_object::getLink()
Get link
base_object::getSessionValue()
base_object::getWebLink()
Get web link
base_object::getWebMediaLink()
Get web media link
base_object::includePluginFile()
Include plugin file
base_object::initializeParams()
Parameter initialisation
base_object::initializeSessionParam()
Initialisation of session-parameter
base_object::logMsg()
Log events
base_object::parseRequestURI()
Parse request URI to filter data out of it
base_object::setSessionValue()
base_object::stripslashes()
base_object::_gt()
Phrasetranslator - Fetch translation for all phrase
base_object::_gtf()
Phrasetranslator - Fetch translation of one phrase and insert variable
base_object::_gtfile()
Phrases - Locate files

Properties Summary
mixed   $authTables  
mixed   $dburi  
string   $debugRPC   Debug mode for RPC (shows iframe and rpc messages)
array   $existingTables   tables in database
boolean   $javascriptRPC   Installer wants to output a javascript for rpc
papaya_modulemanager   $modulemanager   module manager instance to create/sync tables
string   $outputMode   Output as js?
mixed   $paramname  
mixed   $phraseTables  

Method Summary
void   checkAuthTables()  
boolean   checkDatabase()   Check database
void   checkTableExists()  
void   checkTableStruct()  
void   createTable()  
void   dialogCreateTable()  
execute()   Execute
void   executeInstaller()  
void   getInstallerTableLine()  
void   getProgressBarPanel()  
void   getProgressJavascript()  
void   getTableCount()  
void   getTablesListView()  
void   initAdminAccount()  
void   initAuthentication()  
void   initialize()   Initialize parameters
void   initModuleManager()  
void   initModules()  
void   initOptionValues()  
void   initPhrases()  
array   insertCSV()   Insert CSV
void   installDatabaseTable()  
void   outputJavaScriptCommand()  
void   outputJavaScriptFinish()  
void   reloadInstaller()  
void   resetDataBaseTableData()  
void   syncTable()  

Properties
mixed   $authTables = array('auth_groups', 'auth_link', 'auth_modperm', 'auth_modperm_link', 'auth_perm', 'auth_user') [Zeile 28]

mixed   $dburi = PAPAYA_DB_URI [Zeile 22]
Neudefinition von:
base_db::$dburi
Database URI

string   $debugRPC = false [Zeile 48]

Debug mode for RPC (shows iframe and rpc messages)


array   $existingTables = array() [Zeile 36]

tables in database


boolean   $javascriptRPC = false [Zeile 60]

Installer wants to output a javascript for rpc


papaya_modulemanager   $modulemanager = NULL [Zeile 42]

module manager instance to create/sync tables


string   $outputMode = js [Zeile 54]

Output as js?


mixed   $paramname = inst [Zeile 23]

mixed   $phraseTables = array('lng', 'phrase', 'phrase_log', 'phrase_module', 'phrase_relmod', 'phrase_trans') [Zeile 25]

Methods
checkAuthTables  [Zeile 394]

  void checkAuthTables( )



checkDatabase  [Zeile 422]

  boolean checkDatabase( )

Check database


API Tags:
Access:  public


checkTableExists  [Zeile 429]

  void checkTableExists( mixed $tablename  )



checkTableStruct  [Zeile 433]

  void checkTableStruct( mixed $table  )



createTable  [Zeile 479]

  void createTable( mixed $xmlfile, mixed $tablename  )



dialogCreateTable  [Zeile 462]

  void dialogCreateTable( mixed $tablename, [mixed $prefix = NULL]  )



execute  [Zeile 81]

  execute( )

Execute


API Tags:
Access:  public


executeInstaller  [Zeile 120]

  void executeInstaller( )



getInstallerTableLine  [Zeile 306]

  void getInstallerTableLine( mixed $no, mixed $id, mixed $title, mixed $text, [mixed $enabled = true]  )



getProgressBarPanel  [Zeile 339]

  void getProgressBarPanel( )



getProgressJavascript  [Zeile 264]

  void getProgressJavascript( mixed &$table_counts  )



getTableCount  [Zeile 445]

  void getTableCount( mixed $table, [mixed $prefix = NULL]  )



getTablesListView  [Zeile 223]

  void getTablesListView( )



initAdminAccount  [Zeile 185]

  void initAdminAccount( )



initAuthentication  [Zeile 168]

  void initAuthentication( )



initialize  [Zeile 66]

  void initialize( )

Initialize parameters


API Tags:
Access:  public


initModuleManager  [Zeile 455]

  void initModuleManager( )



initModules  [Zeile 656]

  void initModules( )



initOptionValues  [Zeile 649]

  void initOptionValues( )



initPhrases  [Zeile 211]

  void initPhrases( )



insertCSV  [Zeile 600]

  array insertCSV( string $table, string $file  )

Insert CSV

Parameters:
string   $table: 
string   $file: 

API Tags:
Access:  public


installDatabaseTable  [Zeile 505]

  void installDatabaseTable( mixed $table, mixed $idx  )



outputJavaScriptCommand  [Zeile 564]

  void outputJavaScriptCommand( mixed $idx, mixed $success, mixed $msg, mixed $cmd  )



outputJavaScriptFinish  [Zeile 582]

  void outputJavaScriptFinish( )



reloadInstaller  [Zeile 388]

  void reloadInstaller( )



resetDataBaseTableData  [Zeile 531]

  void resetDataBaseTableData( mixed $table, mixed $idx  )



syncTable  [Zeile 493]

  void syncTable( mixed $xmlfile, mixed $tablename  )