Class: papaya_modulemanager

Quellcode Position: Program_Root/papaya_modulemanager.php

Class papaya_modulemanager

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   $basepath  
mixed   $dburi  
mixed   $loadTables  
mixed   $moduleDialog  
mixed   $moduleparamnames  
mixed   $modules  
mixed   $modulesfilename  
mixed   $modulespath  
mixed   $module_types  
mixed   $packages  
mixed   $tables  
mixed   $table_modulegroups  
mixed   $table_modules  

Method Summary
string   checkTrailingSlash()   Check trailing slash
boolean   compareFieldStructure()   Compare field definition in XML and database
boolean   compareKeyStructure()   Compare key structure
integer   compareModuleArrays()   compare module arrays
integer   comparePackageArrays()   Compare package arrays
mixed   createXMLTree()   Create XML tree
void   execute()   Execute - basic function for handling parameters
void   getButtonsXML()   Get Buttons XML
void   getCreateTableDialog()   Get create table dialog
void   getFieldDialog()   Get field dialog
void   getFieldsListView()   Get fields list view
string   getGlyph()   Get glyph
void   getIndexDialog()   Get index dialog
void   getKeysListView()   Get Keys list view
void   getModuleDialog()   Get module dialog
void   getModuleListView()   Get module list view
void   getPackageDialog()  
void   getPackageListView()   Get package list view
void   getTableDialog()   Get table dialog
void   getTablesListView()   Get tables list view
void   getTableSyncDialog()  
void   getXML()   Get XML
initialize()   Initialize parameters
boolean   initModuleDialog()   Initialize module dialog
boolean   loadModule()   Load module
void   loadModuleDBData()   Load module database data
void   loadModuleUseCount()  
void   loadPackageData()   Load package data
loadPackageFile()   Load package file
void   loadPackages()   Load packages
void   loadTable()   Load table
void   loadTableDBData()   Load table database data
mixed   loadTableStructure()   Load table structure
mixed   saveModule()   Save module
void   scanDirectory()   Scan directory
void   searchModules()   Search modules
boolean;   syncTableStructure()   Syncronize a table structure
void   updataModuleTable()   Update data module table
void   updataPackageTable()   Update data package table

Properties
mixed   $basepath [Zeile 38]

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

mixed   $loadTables = false [Zeile 40]

mixed   $moduleDialog = NULL [Zeile 42]

mixed   $moduleparamnames = array('type','guid','name','class','file') [Zeile 30]

mixed   $modules = array() [Zeile 36]

mixed   $modulesfilename = modules.xml [Zeile 28]

mixed   $modulespath = modules/ [Zeile 29]

mixed   $module_types = array('page', 'box', 'admin', 'cronjob', 'time', 'event') [Zeile 31]

mixed   $packages = array() [Zeile 35]

mixed   $tables = array() [Zeile 37]

mixed   $table_modulegroups = PAPAYA_DB_TBL_MODULEGROUPS [Zeile 33]

mixed   $table_modules = PAPAYA_DB_TBL_MODULES [Zeile 32]

Methods
checkTrailingSlash  [Zeile 492]

  string checkTrailingSlash( string $path  )

Check trailing slash

Parameters:
string   $path: 

API Tags:
Return:  path ends with /
Access:  public


compareFieldStructure  [Zeile 794]

  boolean compareFieldStructure( array &$xmlfield, array &$dbfield  )

Compare field definition in XML and database

Parameters:
array   &$xmlfield: 
array   &$dbfield: 

API Tags:
Access:  public


compareKeyStructure  [Zeile 809]

  boolean compareKeyStructure( array $xmlkey, array $dbkey  )

Compare key structure

Parameters:
array   $xmlkey: 
array   $dbkey: 

API Tags:
Access:  public


compareModuleArrays  [Zeile 634]

  integer compareModuleArrays( array $a, array $b  )

compare module arrays

Parameters:
array   $a: 
array   $b: 

API Tags:
Access:  public


comparePackageArrays  [Zeile 653]

  integer comparePackageArrays( array $a, array $b  )

Compare package arrays

Parameters:
array   $a: 
array   $b: 

API Tags:
Access:  public


createXMLTree  [Zeile 609]

  mixed createXMLTree( string $xmldata  )

Create XML tree

Parameters:
string   $xmldata:  XML-string

API Tags:
Return:  object simple_xmlnode $xmltree XML-tree


execute  [Zeile 69]

  void execute( )

Execute - basic function for handling parameters


API Tags:
Access:  public


getButtonsXML  [Zeile 283]

  void getButtonsXML( )

Get Buttons XML


API Tags:
Access:  public


getCreateTableDialog  [Zeile 1395]

  void getCreateTableDialog( string $tablename  )

Get create table dialog

Parameters:
string   $tablename: 

API Tags:
Access:  public


getFieldDialog  [Zeile 1435]

  void getFieldDialog( )

Get field dialog


API Tags:
Access:  public


getFieldsListView  [Zeile 1302]

  void getFieldsListView( array &$struct  )

Get fields list view

Parameters:
array   &$struct: 

API Tags:
Access:  public


getGlyph  [Zeile 308]

  string getGlyph( )

Get glyph


API Tags:
Access:  public


getIndexDialog  [Zeile 1477]

  void getIndexDialog( )

Get index dialog


API Tags:
Access:  public


getKeysListView  [Zeile 1349]

  void getKeysListView( array &$struct  )

Get Keys list view

Parameters:
array   &$struct: 

API Tags:
Access:  public


getModuleDialog  [Zeile 1184]

  void getModuleDialog( )

Get module dialog


API Tags:
Access:  public


getModuleListView  [Zeile 1055]

  void getModuleListView( )

Get module list view


API Tags:
Access:  public


getPackageDialog  [Zeile 1210]

  void getPackageDialog( )



getPackageListView  [Zeile 1033]

  void getPackageListView( )

Get package list view


API Tags:
Access:  public


getTableDialog  [Zeile 1278]

  void getTableDialog( )

Get table dialog


API Tags:
Access:  public


getTablesListView  [Zeile 1118]

  void getTablesListView( )

Get tables list view


API Tags:
Access:  public


getTableSyncDialog  [Zeile 1411]

  void getTableSyncDialog( mixed $table  )



getXML  [Zeile 265]

  void getXML( )

Get XML


API Tags:
Access:  public


initialize  [Zeile 52]

  initialize( [string $paramname = 'mods']  )

Initialize parameters

Parameters:
string   $paramname:  optional, default value 'mods'

API Tags:
Access:  public


initModuleDialog  [Zeile 1147]

  boolean initModuleDialog( )

Initialize module dialog


API Tags:
Access:  public


loadModule  [Zeile 752]

  boolean loadModule( integer $module_id  )

Load module

Parameters:
integer   $module_id: 

API Tags:
Access:  public


loadModuleDBData  [Zeile 703]

  void loadModuleDBData( )

Load module database data


API Tags:
Access:  public


loadModuleUseCount  [Zeile 1245]

  void loadModuleUseCount( mixed $mod_id  )



loadPackageData  [Zeile 686]

  void loadPackageData( integer $pkg_id  )

Load package data

Parameters:
integer   $pkg_id: 

API Tags:
Access:  public


loadPackageFile  [Zeile 533]

  loadPackageFile( $pkgfile $pkgfile, $relpath $relpath  )

Load package file

Parameters:
$pkgfile   $pkgfile: 
$relpath   $relpath: 

API Tags:
Access:  public


loadPackages  [Zeile 670]

  void loadPackages( )

Load packages


API Tags:
Access:  public


loadTable  [Zeile 776]

  void loadTable( integer $pkg_id, string $table  )

Load table

Parameters:
integer   $pkg_id: 
string   $table: 

API Tags:
Access:  public


loadTableDBData  [Zeile 1011]

  void loadTableDBData( &$tables &$tables  )

Load table database data

Parameters:
&$tables   &$tables: 

API Tags:
Access:  public


loadTableStructure  [Zeile 823]

  mixed loadTableStructure( string $xmlfile  )

Load table structure

Parameters:
string   $xmlfile: 

API Tags:
Return:  array or false
Access:  public


saveModule  [Zeile 997]

  mixed saveModule( )

Save module


API Tags:
Access:  public


scanDirectory  [Zeile 505]

  void scanDirectory( string $path  )

Scan directory

Parameters:
string   $path: 

API Tags:
Access:  public


searchModules  [Zeile 470]

  void searchModules( string $path  )

Search modules

Parameters:
string   $path: 

API Tags:
Access:  public


syncTableStructure  [Zeile 932]

  boolean; syncTableStructure( array &$tablestruct  )

Syncronize a table structure

Parameters:
array   $tablestruct:  Table stucture

API Tags:
Access:  public


updataModuleTable  [Zeile 337]

  void updataModuleTable( )

Update data module table


API Tags:
Access:  public


updataPackageTable  [Zeile 437]

  void updataPackageTable( )

Update data package table


API Tags:
Access:  public