Class: papaya_parser

Quellcode Position: Program_Root/papaya_parser.php

Class papaya_parser

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
string   $data   Data
string   $dburi   Database URI
string   $files   Files
string   $media_org_path   Media orgiginal path
string   $media_thumb_path   Media thumbnail path
string   $papaya_params_pattern   Ndim parameters pattern
string   $papaya_tag_pattern   Ndim tag pattern
string   $table_media_files   Table media files
string   $table_topics   Table topics
string   $tags   Tags
string   $topics   Linked page topic ID

Method Summary
array   calcBorders()   Calculate borders
string   createDownloadTag()   Create download link tag for example parameter "download=yes" is given.
string   createFlashTag()   Create tag for flash object
string   createImageTag()   Create image tag
string   createLink()   Create Link
mixed   createMediaTag()   Create media tag
string   createPDFTag()   Create tag for pdf-object
string   createPopUpLink()   Create Link for popup window
mixed   createTag()   Function creates links by given tag
string   createThumbnail()   Create a thumbnail in given size
mixed   expandTag()   Expand tag with aditional inforamtions for JS up-to-date-check
mixed   getFileInfos()   Get file Info
void   getMediaInfos()   Fetch informaiton to given media object out of database
void   getTopicInfos()   Fetch informaiton to given topic id out of database
void   mediaFileExists()  
string   parse()   Parse function
array   parseTag()   Parse tag
void   replaceTags()   Replace tags

Properties
string   $data [Zeile 74]

Data


string   $dburi = PAPAYA_DB_URI [Zeile 26]

Database URI

Neudefinition von:
base_db::$dburi
Database URI

string   $files [Zeile 80]

Files


string   $media_org_path = PAPAYA_PATH_MEDIAFILES [Zeile 44]

Media orgiginal path


string   $media_thumb_path = PAPAYA_PATH_THUMBFILES [Zeile 50]

Media thumbnail path


string   $papaya_params_pattern = )|(?:"([^"]*)")|([^\s,]+))/i [Zeile 62]

Ndim parameters pattern


string   $papaya_tag_pattern = /<(papaya|papaya):([a-z]\w+)\s?([^>]*)\/?>(<\/(\1):(\2)>)?/ims [Zeile 56]

Ndim tag pattern


string   $table_media_files = PAPAYA_DB_TBL_MEDIA_FILES [Zeile 32]

Table media files


string   $table_topics = PAPAYA_DB_TBL_TOPICS [Zeile 38]

Table topics


string   $tags [Zeile 68]

Tags


string   $topics [Zeile 86]

Linked page topic ID


Methods
calcBorders  [Zeile 641]

  array calcBorders( array $params, array $data  )

Calculate borders

Parameters:
array   $params:  Link parameters
array   $data:  Parser given data like hight width of object

API Tags:
Return:  ('left'=>$left, 'right'=>$right, 'top'=>$top, 'bottom'=>$bottom, 'subtitle'=>$subtitle)


createDownloadTag  [Zeile 777]

  string createDownloadTag( array $params, array $data  )

Create download link tag for example parameter "download=yes" is given.

Parameters:
array   $params:  Used parameters
array   $data:  Parser given data like hight width of object

API Tags:
Return:  Tag in XHTML which can be used in all HTML-files


createFlashTag  [Zeile 714]

  string createFlashTag( array $params, array $data  )

Create tag for flash object

Parameters:
array   $params:  Used parameters
array   $data:  Parser given data like hight width of object

API Tags:
Return:  Tag in XHTML which can be used in all HTML-files


createImageTag  [Zeile 533]

  string createImageTag( array $params, array $data  )

Create image tag

Parameters:
array   $params:  Link parameters
array   $data:  Parser given data like hight width of object


createLink  [Zeile 801]

  string createLink( array $params, array $data  )

Create Link

Parameters:
array   $params:  Used parameters
array   $data:  Parser given data like hight width of object

API Tags:
Return:  Tag in XHTML which can be used in all HTML-files


createMediaTag  [Zeile 501]

  mixed createMediaTag( array $params  )

Create media tag

Parameters:
array   $params:  Parameters

API Tags:
Return:  Link or false


createPDFTag  [Zeile 741]

  string createPDFTag( array $params, array $data  )

Create tag for pdf-object

Parameters:
array   $params:  Used parameters
array   $data:  Parser given data like hight width of object

API Tags:
Return:  Tag in XHTML which can be used in all HTML-files


createPopUpLink  [Zeile 872]

  string createPopUpLink( array $params  )

Create Link for popup window

Parameters:
array   $params:  Used parameters

API Tags:
Return:  Tag in XHTML which can be used in all HTML-files


createTag  [Zeile 233]

  mixed createTag( array $tag  )

Function creates links by given tag

Parameters:
array   $tag:  data of papaya-tag for example <papaya:media.../ <papaya:link... or <papaya:popup...>

API Tags:
Return:  Link or false if unknown tag is given to function


createThumbnail  [Zeile 678]

  string createThumbnail( array $params, array $data  )

Create a thumbnail in given size

Parameters:
array   $params:  parameters
array   $data:  Parser given data like hight width of object

API Tags:
Return:  Tag in XHTML which can be used in all HTML-files


expandTag  [Zeile 251]

  mixed expandTag( array $tag, mixed $original, [mixed $stripattr = false]  )

Expand tag with aditional inforamtions for JS up-to-date-check

Parameters:
array   $tag:  data of papaya-tag for example <papaya:media.../ <papaya:link... or <papaya:popup...>

API Tags:
Return:  Link or false if unknown tag is given to function


getFileInfos  [Zeile 215]

  mixed getFileInfos( mixed $file_id, mixed $filename, mixed $filetitle, mixed $filesize  )

Get file Info


API Tags:
Return:  Array with width, height, type, title and size or false


getMediaInfos  [Zeile 193]

  void getMediaInfos( )

Fetch informaiton to given media object out of database



getTopicInfos  [Zeile 173]

  void getTopicInfos( )

Fetch informaiton to given topic id out of database



mediaFileExists  [Zeile 922]

  void mediaFileExists( mixed $file_id  )



parse  [Zeile 97]

  string parse( string $data, [boolean $expand = false], [boolean $stripattr = false]  )

Parse function

Parameters:
string   $data: 
boolean   $expand:  optional, default value false
boolean   $stripattr:  optional, default value false

API Tags:
Access:  public


parseTag  [Zeile 146]

  array parseTag( string $tagname, string $tag  )

Parse tag

Parameters:
string   $tagname: 
string   $tag: 

API Tags:
Access:  public


replaceTags  [Zeile 130]

  void replaceTags( )

Replace tags


API Tags:
Access:  public