Class: base_boxes

Quellcode Position: Program_Root/base_boxes.php

Class base_boxes

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

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   $box  
mixed   $boxlist  
mixed   $boxlist_obj  
mixed   $boxmodules  
mixed   $box_new  
mixed   $dburi  
mixed   $max_versions  
mixed   $msgs  
mixed   $paramname  
mixed   $params  
mixed   $table_box  
mixed   $table_boxgroup  
mixed   $table_box_public  
mixed   $table_box_versions  
mixed   $table_link  
mixed   $table_modules  
mixed   $table_user  

Method Summary
base_boxes()   Constructor
mixed   add()   Add a box
mixed   addGroup()   Add a group
boolean   check()   Box input check function
checkGroup()   Group input check function
boolean   createVersion()   Create verion of Box
mixed   delete()   Delete box via given id
void   deleteCache()   Delete box output cache
string   deleteGroup()   Delete group via given id
mixed   delForm()   Delete formular (questioning)
mixed   delGroupForm()   Delete group formular
boolean   delPublicBox()   Delete public box
boolean   delVersion()   Delete version
string   edit()   Edit - copy box parameters in $this->params
mixed   editContent()   Edit Content
string   editGroup()   Edit Group
void   execute()   Access function
string   getBoxInfos()   Get information about box
void   getButtons()   buttons in menu bar
mixed   getDelPublicForm()   Get public delete formular
string   getPreviewFrame()   Get preview frame
string   getPublicData()   Get public data
mixed   getPublicDate()   Get publish date
mixed   getPublishForm()   Get publish formular
string   getVersionDelForm()   Get version delete fromular
string   getVersionInfos()   Get version Information XML-source
mixed   getVersionRestoreForm()   Get version restore formular
string   getVersionsList()   Get versions list XML-source
void   getXML()   Build site
string   getXMLList()   Get list XML-source
void   initialize()   Initialisation of class variable
void   initializeNodes()   Initialisation of nodes
mixed   load()   Load Box by id
mixed   loadGroup()   Load group by id
boolean   loadGroupList()   Load group list
mixed   loadList()   Load list
void   loadModulesList()   Load list with modules
boolean   loadOldVersion()   Load old version
void   loadVersionsList()   Load versions list
mixed   parsedBox()   Parsed Box
boolean   publishBox()   Boxes publish function
string   publishExecute()   publication execute
mixed   removeOldVersions()   Remove old versions
boolean   restoreVersion()   Restore version
mixed   save()   Save changes of a box
boolean   saveData()   Save data
mixed   saveGroup()   Save group
mixed   versionExecute()   Execute version

Properties
mixed   $box [Zeile 39]

mixed   $boxlist [Zeile 38]

mixed   $boxlist_obj [Zeile 37]

mixed   $boxmodules [Zeile 40]

mixed   $box_new [Zeile 41]

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

mixed   $max_versions = PAPAYA_VERSIONS_MAXCOUNT [Zeile 35]

mixed   $msgs [Zeile 42]
Neudefinition von:
base_db::$msgs
Message for user

mixed   $paramname [Zeile 44]

mixed   $params [Zeile 45]

mixed   $table_box = PAPAYA_DB_TBL_BOX [Zeile 28]

mixed   $table_boxgroup = PAPAYA_DB_TBL_BOXGROUP [Zeile 31]

mixed   $table_box_public = PAPAYA_DB_TBL_BOX_PUBLIC [Zeile 30]

mixed   $table_box_versions = PAPAYA_DB_TBL_BOX_VERSIONS [Zeile 29]

mixed   $table_link = PAPAYA_DB_TBL_BOXLINKS [Zeile 33]

mixed   $table_modules = PAPAYA_DB_TBL_MODULES [Zeile 32]

mixed   $table_user = PAPAYA_DB_TBL_AUTHUSER [Zeile 34]

Methods
Constructor base_boxes  [Zeile 54]

  base_boxes( [string $paramname = 'bb']  )

Constructor

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

API Tags:
Access:  public


add  [Zeile 423]

  mixed add( &$boxtypes &$boxtypes, $box_id $box_id, $group_id $group_id  )

Add a box

Parameters:
&$boxtypes   &$boxtypes: 
$box_id   $box_id: 
$group_id   $group_id: 

API Tags:
Access:  public


addGroup  [Zeile 463]

  mixed addGroup( )

Add a group


API Tags:
Access:  public


check  [Zeile 684]

  boolean check( )

Box input check function


API Tags:
Access:  public


checkGroup  [Zeile 750]

  checkGroup( )

Group input check function


API Tags:
Access:  public


createVersion  [Zeile 507]

  boolean createVersion( )

Create verion of Box


API Tags:
Access:  public


delete  [Zeile 788]

  mixed delete( integer $id, [string $cmd = 'delbox']  )

Delete box via given id

Parameters:
integer   $id: 
string   $cmd:  optional, default value 'delbox'

API Tags:
Return:  formular or ''
Access:  public


deleteCache  [Zeile 641]

  void deleteCache( $box_id $box_id  )

Delete box output cache

Parameters:
$box_id   $box_id: 

API Tags:
Access:  public


deleteGroup  [Zeile 835]

  string deleteGroup( integer $id, [string $cmd = 'delgroup']  )

Delete group via given id

Parameters:
integer   $id: 
string   $cmd:  optional, default value 'delgroup'

API Tags:
Return:  formular or ''
Access:  public


delForm  [Zeile 965]

  mixed delForm( string $cmd  )

Delete formular (questioning)

Parameters:
string   $cmd: 

API Tags:
Return:  dialog
Access:  public


delGroupForm  [Zeile 986]

  mixed delGroupForm( string $cmd  )

Delete group formular

Parameters:
string   $cmd: 

API Tags:
Return:  dialog
Access:  public


delPublicBox  [Zeile 674]

  boolean delPublicBox( )

Delete public box


API Tags:
Access:  public


delVersion  [Zeile 1256]

  boolean delVersion( )

Delete version


API Tags:
Access:  public


edit  [Zeile 869]

  string edit( )

Edit - copy box parameters in $this->params


API Tags:
Return:  edit formular
Access:  public


editContent  [Zeile 1008]

  mixed editContent( integer $user_id  )

Edit Content

Parameters:
integer   $user_id: 

API Tags:
Return:  formular
Access:  public


editGroup  [Zeile 934]

  string editGroup( )

Edit Group


API Tags:
Return:  edit formular
Access:  public


execute  [Zeile 102]

  void execute( )

Access function


API Tags:
Access:  public


getBoxInfos  [Zeile 1403]

  string getBoxInfos( )

Get information about box


API Tags:
Return:  XML
Access:  public


getButtons  [Zeile 220]

  void getButtons( )

buttons in menu bar


API Tags:
Access:  public


getDelPublicForm  [Zeile 1454]

  mixed getDelPublicForm( )

Get public delete formular


API Tags:
Return:  dialog
Access:  public


getPreviewFrame  [Zeile 1476]

  string getPreviewFrame( string $caption, integer $sid  )

Get preview frame

Parameters:
string   $caption: 
integer   $sid: 

API Tags:
Access:  public


getPublicData  [Zeile 1351]

  string getPublicData( boolean $sel  )

Get public data

Parameters:
boolean   $sel: 

API Tags:
Return:  XML
Access:  public


getPublicDate  [Zeile 658]

  mixed getPublicDate( )

Get publish date


API Tags:
Return:  boolean od modified
Access:  public


getPublishForm  [Zeile 1430]

  mixed getPublishForm( )

Get publish formular


API Tags:
Return:  dialog
Access:  public


getVersionDelForm  [Zeile 1214]

  string getVersionDelForm( )

Get version delete fromular


API Tags:
Return:  fromular
Access:  public


getVersionInfos  [Zeile 1149]

  string getVersionInfos( )

Get version Information XML-source


API Tags:
Return:  XML-source
Access:  public


getVersionRestoreForm  [Zeile 1235]

  mixed getVersionRestoreForm( )

Get version restore formular


API Tags:
Return:  dialog
Access:  public


getVersionsList  [Zeile 1108]

  string getVersionsList( )

Get versions list XML-source


API Tags:
Return:  XML-source
Access:  public


getXML  [Zeile 166]

  void getXML( )

Build site


API Tags:
Access:  public


getXMLList  [Zeile 1039]

  string getXMLList( $a_box_id $a_box_id, $a_group_id $a_group_id  )

Get list XML-source

Parameters:
$a_box_id   $a_box_id: 
$a_group_id   $a_group_id: 

API Tags:
Return:  XML-source
Access:  public


initialize  [Zeile 64]

  void initialize( )

Initialisation of class variable


API Tags:
Access:  public


initializeNodes  [Zeile 80]

  void initializeNodes( )

Initialisation of nodes


API Tags:
Access:  public


load  [Zeile 324]

  mixed load( integer $id  )

Load Box by id

Parameters:
integer   $id: 

API Tags:
Return:  box or false
Access:  public


loadGroup  [Zeile 352]

  mixed loadGroup( integer $id  )

Load group by id

Parameters:
integer   $id: 

API Tags:
Access:  public


loadGroupList  [Zeile 302]

  boolean loadGroupList( )

Load group list


API Tags:
Access:  public


loadList  [Zeile 277]

  mixed loadList( )

Load list


API Tags:
Return:  boolean
Access:  public


loadModulesList  [Zeile 377]

  void loadModulesList( )

Load list with modules


API Tags:
Access:  public


loadOldVersion  [Zeile 535]

  boolean loadOldVersion( )

Load old version


API Tags:
Access:  public


loadVersionsList  [Zeile 397]

  void loadVersionsList( integer $id  )

Load versions list

Parameters:
integer   $id: 

API Tags:
Access:  public


parsedBox  [Zeile 1490]

  mixed parsedBox( )

Parsed Box


API Tags:
Return:  preview
Access:  public


publishBox  [Zeile 601]

  boolean publishBox( )

Boxes publish function


API Tags:
Access:  public


publishExecute  [Zeile 1318]

  string publishExecute( )

publication execute


API Tags:
Return:  formular or ''
Access:  public


removeOldVersions  [Zeile 1290]

  mixed removeOldVersions( )

Remove old versions


API Tags:
Access:  public


restoreVersion  [Zeile 1267]

  boolean restoreVersion( integer $user_id  )

Restore version

Parameters:
integer   $user_id: 

API Tags:
Access:  public


save  [Zeile 475]

  mixed save( integer $user_id  )

Save changes of a box

Parameters:
integer   $user_id: 

API Tags:
Access:  public


saveData  [Zeile 583]

  boolean saveData( )

Save data


API Tags:
Access:  public


saveGroup  [Zeile 562]

  mixed saveGroup( )

Save group


API Tags:
Access:  public


versionExecute  [Zeile 1178]

  mixed versionExecute( )

Execute version


API Tags:
Access:  public