Class: base_topic_tree

Quellcode Position: Program_Root/base_topictree.php

Class base_topic_tree

Class Overview
Direct Derivates
Abgeleitete Class Description
papaya_alias_tree Object to display a alias tree (n-dimensional)
papaya_topic_tree object to show sitemap in edit area (n-dimensional)

Inherited Properties And Methods
Inherited Properties Inherited Methods

Abgeleitet von base_db

base_db::$dbobj_name
base_db::$dbsocket
base_db::$dburi
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   $opened  
mixed   $paramname  
mixed   $params  
mixed   $sessionparamname  
mixed   $subtopic_count  
mixed   $topics  

Method Summary
base_topic_tree()   Constructor
void   execute()   execute - basic function for handling parameters
string   generatePrevPath()   Generate preview path
string   get()   Get
mixed   getButtons()   Get buttons
string   getPartTree()   Get part tree
string   getStaticSubTree()   Get stratic sub tree
string   getSubTree()   Get sub tree
string   getXML()   Get XML
string   getXMLElement()   Get XML element
string   getXMLSubTree()   Get XML sub tree
boolean   hasParent()   Is entry parent of $id ?
initialize()   Initialize parameters
void   load()   Load
void   loadSimplyAll()   Load simply all
void   openAll()   Open all
void   openPrevs()   Open previews
void   openSubIds()   Open sub ID's
array   optimizeList()   Connect all childs to the parents build and array of entries ids with no parents.
void   refreshPages()   Refresh pages
void   regeneratePath()   Regenerate path
boolean   topicEditable()   Is topic editable

Properties
mixed   $baselink [Zeile 31]

mixed   $opened [Zeile 34]

mixed   $paramname [Zeile 28]

mixed   $params [Zeile 30]

mixed   $sessionparamname [Zeile 29]

mixed   $subtopic_count [Zeile 33]

mixed   $topics [Zeile 32]

Methods
Constructor base_topic_tree  [Zeile 43]

  base_topic_tree( [string $paramname = 'tt']  )

Constructor

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

API Tags:
Access:  public


execute  [Zeile 79]

  void execute( )

execute - basic function for handling parameters


API Tags:
Access:  public

Neu definiert in folgenden Ableitungen:

generatePrevPath  [Zeile 329]

  string generatePrevPath( integer $id  )

Generate preview path

Parameters:
integer   $id: 

API Tags:
Access:  public


get  [Zeile 532]

  string get( )

Get


API Tags:
Access:  public

Neu definiert in folgenden Ableitungen:

getButtons  [Zeile 766]

  mixed getButtons( )

Get buttons


API Tags:
Return:  boolean or array
Access:  public

Neu definiert in folgenden Ableitungen:

getPartTree  [Zeile 450]

  string getPartTree( object &$topic  )

Get part tree

Parameters:
object   &$topic:  base_topic

API Tags:
Access:  public


getStaticSubTree  [Zeile 492]

  string getStaticSubTree( array $nodes, [integer $indent = 0]  )

Get stratic sub tree

Parameters:
array   $nodes: 
integer   $indent:  optional, default value 0

API Tags:
Access:  public


getSubTree  [Zeile 556]

  string getSubTree( array $id_arr, integer &$counter  )

Get sub tree

Parameters:
array   $id_arr: 
integer   &$counter: 

API Tags:
Access:  public


getXML  [Zeile 696]

  string getXML( )

Get XML


API Tags:
Access:  public


getXMLElement  [Zeile 732]

  string getXMLElement( integer $id, integer $indent  )

Get XML element

Parameters:
integer   $id: 
integer   $indent: 

API Tags:
Access:  public


getXMLSubTree  [Zeile 713]

  string getXMLSubTree( integer $id, integer $indent  )

Get XML sub tree

Parameters:
integer   $id: 
integer   $indent: 

API Tags:
Access:  public


hasParent  [Zeile 210]

  boolean hasParent( integer $id  )

Is entry parent of $id ?

Parameters:
integer   $id: 

API Tags:
Access:  public


initialize  [Zeile 55]

  initialize( [mixed $id = NULL]  )

Initialize parameters

Parameters:
mixed   $id:  optional, default value NULL

API Tags:
Access:  public


load  [Zeile 153]

  void load( integer $baseid  )

Load

Parameters:
integer   $baseid: 

API Tags:
Access:  public

Neu definiert in folgenden Ableitungen:

loadSimplyAll  [Zeile 252]

  void loadSimplyAll( )

Load simply all


API Tags:
Access:  public


openAll  [Zeile 378]

  void openAll( [integer $id = 0]  )

Open all

Parameters:
integer   $id:  optional, default value 0

API Tags:
Access:  public


openPrevs  [Zeile 349]

  void openPrevs( integer $id  )

Open previews

Parameters:
integer   $id: 

API Tags:
Access:  public


openSubIds  [Zeile 134]

  void openSubIds( integer $baseid  )

Open sub ID's

Parameters:
integer   $baseid: 

API Tags:
Access:  public


optimizeList  [Zeile 419]

  array optimizeList( [interger $baseid = 0]  )

Connect all childs to the parents build and array of entries ids with no parents.

Parameters:
interger   $baseid:  ID of Top Entry

API Tags:
Return:  list of base entry ids


refreshPages  [Zeile 782]

  void refreshPages( )

Refresh pages


API Tags:
Access:  public


regeneratePath  [Zeile 274]

  void regeneratePath( )

Regenerate path


API Tags:
Access:  public


topicEditable  [Zeile 673]

  boolean topicEditable( integer $topic_id  )

Is topic editable

Parameters:
integer   $topic_id: 

API Tags:
Access:  public