Class: base_phraseeditor

Quellcode Position: Program_Root/base_phraseeditor.php

Class base_phraseeditor

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   $baselink  
mixed   $dburi  
mixed   $msgabscount  
mixed   $msgsteps  
mixed   $paramname  
mixed   $params  
mixed   $phrabscount  
mixed   $phrsteps  
mixed   $sessionparamname  
mixed   $sessionparams  
mixed   $table_lng  
mixed   $table_log  
mixed   $table_modrel  
mixed   $table_module  
mixed   $table_phrase  
mixed   $table_translation  

Method Summary
boolean   addPhrase()   Add phrase
string   buildlink()   build link
boolean   cleanLog()   Clean log
mixed   clearModuleLinks()   Clear module links
boolean   deleteLogMsg()   Delete log message
boolean   deletePhrase()   Delete phrase
boolean   emptyLog()   Empty log
boolean   emptyModules()   Empty modules
void   execute()   Baic function for handling parameters
void   getAddForm()   get add formular
void   getDelForm()   Get del formular
void   getEditForm()   Get edit formular
array   getLngComboItems()   Get language combo items
string   getLngGlyph()   Get language glyph
void   getLogMsgList()   Get log message list
getModuleComboItems()   Get module combo items
void   getPagesNav()   Get pages navigation
void   getPhrasesList()   Get phrases list
void   getXML()   Get XML
void   getXMLButtons()   get XML buttons
void   initialize()   Initialize parameters
loadLanguages()   Load languages
boolean   loadLogMessages()   Load log messages
boolean   loadModules()   Load modules
boolean   loadPhrase()   Load phrase
boolean   loadPhrases()   load phrases
boolean   saveTranslations()   Save translations

Properties
mixed   $baselink [Zeile 34]

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

mixed   $msgabscount [Zeile 38]

mixed   $msgsteps = 10 [Zeile 36]

mixed   $paramname = phr [Zeile 30]

mixed   $params = null [Zeile 32]

mixed   $phrabscount [Zeile 39]

mixed   $phrsteps = 20 [Zeile 37]

mixed   $sessionparamname = PAPAYA_SESS_phr [Zeile 31]

mixed   $sessionparams = null [Zeile 33]

mixed   $table_lng = PAPAYA_DB_TBL_LNG [Zeile 27]

mixed   $table_log = PAPAYA_DB_TBL_PHRASE_LOG [Zeile 28]

mixed   $table_modrel = PAPAYA_DB_TBL_PHRASE_MODULE_REL [Zeile 26]

mixed   $table_module = PAPAYA_DB_TBL_PHRASE_MODULE [Zeile 25]

mixed   $table_phrase = PAPAYA_DB_TBL_PHRASE [Zeile 23]

mixed   $table_translation = PAPAYA_DB_TBL_PHRASE_TRANS [Zeile 24]

Methods
addPhrase  [Zeile 262]

  boolean addPhrase( string $new_phrase  )

Add phrase

Parameters:
string   $new_phrase: 

API Tags:
Access:  public


buildlink  [Zeile 527]

  string buildlink( [mixed $params = NULL], [mixed $base_params = NULL], [mixed $reset_params = NULL]  )

build link

Parameters:
mixed   $params:  optional, default value NULL
mixed   $base_params:  optional, default value NULL
mixed   $reset_params:  optional, default value NULL

API Tags:
Access:  public


cleanLog  [Zeile 458]

  boolean cleanLog( [string $phrase = ''], [mixed $phrase_id = NULL]  )

Clean log

Parameters:
string   $phrase:  optional, default value ''
mixed   $phrase_id:  optional, default value NULL

API Tags:
Access:  public


clearModuleLinks  [Zeile 355]

  mixed clearModuleLinks( [mixed $module = NULL], [mixed $phrase = NULL]  )

Clear module links

Parameters:
mixed   $module:  optional, default value NULL
mixed   $phrase:  optional, default value NULL

API Tags:
Access:  public


deleteLogMsg  [Zeile 475]

  boolean deleteLogMsg( integer $id  )

Delete log message

Parameters:
integer   $id: 

API Tags:
Access:  public


deletePhrase  [Zeile 290]

  boolean deletePhrase( )

Delete phrase


API Tags:
Access:  public


emptyLog  [Zeile 436]

  boolean emptyLog( )

Empty log


API Tags:
Access:  public


emptyModules  [Zeile 446]

  boolean emptyModules( )

Empty modules


API Tags:
Access:  public


execute  [Zeile 66]

  void execute( )

Baic function for handling parameters


API Tags:
Access:  public


getAddForm  [Zeile 789]

  void getAddForm( )

get add formular


API Tags:
Access:  public


getDelForm  [Zeile 768]

  void getDelForm( )

Get del formular


API Tags:
Access:  public


getEditForm  [Zeile 735]

  void getEditForm( )

Get edit formular


API Tags:
Access:  public


getLngComboItems  [Zeile 604]

  array getLngComboItems( )

Get language combo items


API Tags:
Access:  public


getLngGlyph  [Zeile 678]

  string getLngGlyph( integer $lng_id  )

Get language glyph

Parameters:
integer   $lng_id: 

API Tags:
Return:  file name
Access:  public


getLogMsgList  [Zeile 691]

  void getLogMsgList( )

Get log message list


API Tags:
Access:  public


getModuleComboItems  [Zeile 620]

  getModuleComboItems( )

Get module combo items


API Tags:
Access:  public


getPagesNav  [Zeile 500]

  void getPagesNav( object &$toolbar, integer $offset, integer $step, integer $max, [string $paramname = 'offset'], [string $caption = 'Pages']  )

Get pages navigation

Parameters:
object   &$toolbar: 
integer   $offset: 
integer   $step: 
integer   $max: 
string   $paramname:  optional, default value 'offset'
string   $caption:  optional, default value 'Pages'

API Tags:
Access:  public


getPhrasesList  [Zeile 635]

  void getPhrasesList( )

Get phrases list


API Tags:
Access:  public


getXML  [Zeile 125]

  void getXML( )

Get XML


API Tags:
Access:  public


getXMLButtons  [Zeile 558]

  void getXMLButtons( )

get XML buttons


API Tags:
Access:  public


initialize  [Zeile 47]

  void initialize( [string $paramname = 'phr']  )

Initialize parameters

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

API Tags:
Access:  public


loadLanguages  [Zeile 393]

  loadLanguages( )

Load languages


API Tags:
Access:  public


loadLogMessages  [Zeile 414]

  boolean loadLogMessages( )

Load log messages


API Tags:
Access:  public


loadModules  [Zeile 373]

  boolean loadModules( )

Load modules


API Tags:
Access:  public


loadPhrase  [Zeile 230]

  boolean loadPhrase( integer $id, [boolean $usedb = false]  )

Load phrase

Parameters:
integer   $id: 
boolean   $usedb:  optional, default value false

API Tags:
Access:  public


loadPhrases  [Zeile 148]

  boolean loadPhrases( integer $module_id  )

load phrases

Parameters:
integer   $module_id: 

API Tags:
Access:  public


saveTranslations  [Zeile 303]

  boolean saveTranslations( )

Save translations


API Tags:
Access:  public