Class: base_plugin

Quellcode Position: Program_Root/base_plugin.php

Class base_plugin

Class Overview
Direct Derivates
Abgeleitete Class Description
base_crontime Basic object of all time calculation modules
base_module Basic objekt for all module objects
base_eventbox Basic object for all event box objects (Calendar)
base_cronjob Basic object für alle cronjobs
base_actionbox Base class of action box objects
base_content Basic class for page modules

Inherited Properties And Methods
Inherited Properties Inherited Methods

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
string   $baselink   Default-link
boolean   $cacheable   Output of module cacheable?
mixed   $css_class_input  
array   $data   Buffer for content/configurations data
array   $editfields   name => (
mixed   $emptyerror  
mixed   $field_error  
mixed   $inputerror  
int   $msgs   Referenz on message-objekt
string   $paramname   Parameter name for html formulars
array   $params   Parameter for HTML-formulars
integer   $preview   Is preview possible?
string   $tagname   XML-tag-base
$usesXML   $usesXML   Create XML for debug messages

Method Summary
base_plugin   base_plugin()   Constructor PHP 4
boolean   checkData()   Change input
array   checkDialogInput()   Check user dialog input
boolean   checkSurferPerm()   Check sufer permissions
simple_xmlnode   createXMLTree()   Create XML-tree.
string   getData()   Write data array to xml string
string   getDialog()   Gibt den Dialog zurueck
string   getForm()   Edit output
void   getMediaTag()  
void   getParamName()   Returns given parameter
string   getParsedData()   XML for take-over in page
string   getPermsCombo()   Callback for Select-Box with rights
string   getXHTMLString()   Create XHTML-compliant string.
string   html_nl2br()   Callback-function - transform \r\n in <br />.
void   initializeDialog()   Initialize dialog
boolean   modified()   data changed?
void   onLoad()   place holder - overload von ihertited classes
void   parseImageFieldData()  
void   serializeArrayToXML()  
void   setData()   Load configuration data in object
void   unserializeArrayFromXML()  
string   _gt()   Phrase translator - fetch translation
void   __construct()   Constructor PHP 5

Properties
string   $baselink [Zeile 54]

Default-link


boolean   $cacheable = 1 [Zeile 92]

Output of module cacheable?

Neu definiert in folgenden Ableitungen:

array   $data = NULL [Zeile 36]

Buffer for content/configurations data


array   $editfields [Zeile 86]

name => (

inscription, check function, mandatory field (true/false), Type (input, combo, textarea) Type paramter(maximum length, value-hash, row) fast help)


mixed   $emptyerror = This field needs a value. [Zeile 102]

mixed   $field_error [Zeile 100]

mixed   $inputerror = The Input in this field contains errors. [Zeile 101]

int   $msgs [Zeile 60]

Referenz on message-objekt

Neudefinition von:
base_object::$msgs
Error message

string   $paramname [Zeile 42]

Parameter name for html formulars


array   $params [Zeile 48]

Parameter for HTML-formulars


integer   $preview = false [Zeile 98]

Is preview possible?


string   $tagname = data [Zeile 66]

XML-tag-base


$usesXML   $usesXML = false [Zeile 73]

Create XML for debug messages


Methods
Constructor base_plugin  [Zeile 128]

  base_plugin base_plugin( object &$topic, [string $paramname = NULL]  )

Constructor PHP 4

Parameters:
string   $paramname:  Parametername
object   &$topic:  base_topic Topic object


checkData  [Zeile 217]

  boolean checkData( )

Change input



checkDialogInput  [Zeile 273]

  array checkDialogInput( )

Check user dialog input


API Tags:
Return:  $result


checkSurferPerm  [Zeile 404]

  boolean checkSurferPerm( integer $perm_id  )

Check sufer permissions

Parameters:
integer   $perm_id: 

API Tags:
Access:  public


createXMLTree  [Zeile 324]

  simple_xmlnode createXMLTree( string $xmldata  )

Create XML-tree.

Parameters:
string   $xmldata:  XML-string

API Tags:
Return:  $xmltree XML-tree


getData  [Zeile 157]

  string getData( )

Write data array to xml string


API Tags:
Return:  $result XML-data string


getDialog  [Zeile 260]

  string getDialog( )

Gibt den Dialog zurueck


API Tags:
Return:  $this->dialog->getDialogXML()


getForm  [Zeile 233]

  string getForm( )

Edit output


API Tags:
Return:  XML-string with Formular


getMediaTag  [Zeile 434]

  void getMediaTag( mixed $data, [mixed $width = 0], [mixed $height = 0], [mixed $resize = 'max']  )



getParamName  [Zeile 136]

  void getParamName( string $paramname  )

Returns given parameter

Parameters:
string   $paramname:  parameter name


getParsedData  [Zeile 225]

  string getParsedData( )

XML for take-over in page


Neu definiert in folgenden Ableitungen:

getPermsCombo  [Zeile 356]

  string getPermsCombo( string $name, array $field, mixed $data  )

Callback for Select-Box with rights

Parameters:
string   $name: 
array   $field: 
mixed   $data: 


getXHTMLString  [Zeile 301]

  string getXHTMLString( string $str, [boolean $nl2br = false]  )

Create XHTML-compliant string.

Parameters:
string   $str: 
boolean   $nl2br:  Convert line break in XHTML


html_nl2br  [Zeile 288]

  string html_nl2br( array $regs  )

Callback-function - transform \r\n in <br />.

Parameters:
array   $regs:  Trefferdaten

API Tags:
Return:  $result


initializeDialog  [Zeile 241]

  void initializeDialog( )

Initialize dialog


Neu definiert in folgenden Ableitungen:

modified  [Zeile 208]

  boolean modified( )

data changed?



onLoad  [Zeile 344]

  void onLoad( )

place holder - overload von ihertited classes



parseImageFieldData  [Zeile 412]

  void parseImageFieldData( mixed $datastr  )



serializeArrayToXML  [Zeile 166]

  void serializeArrayToXML( mixed &$data_arr  )



setData  [Zeile 144]

  void setData( string $xmldata  )

Load configuration data in object

Parameters:
string   $xmldata:  XML-data string


unserializeArrayFromXML  [Zeile 186]

  void unserializeArrayFromXML( mixed &$data_arr, mixed &$node  )



_gt  [Zeile 390]

  string _gt( string $phrase, [mixed $module = NULL]  )

Phrase translator - fetch translation

Parameters:
string   $phrase:  Phrase
mixed   $module:  Modul

API Tags:
Return:  $phrase

Neudefinition von:
base_object::_gt()
Phrasetranslator - Fetch translation for all phrase

__construct  [Zeile 112]

  void __construct( object &$topic, [string $paramname = NULL]  )

Constructor PHP 5

Parameters:
string   $paramname:  Parametername
object   &$topic:  base_topic Topic object