Class html

Description

for dealing with HTML (formatting)

Located in /structure/classes/tools.php (line 92)


	
			
Variable Summary
 mixed $array
 mixed $contenttype
 mixed $isHref
 mixed $name
 mixed $searchtext
 mixed $text
Method Summary
 HTML emphase ([ &$originaltext = ''], [mixed $replacetext = ''], [string $contenttype = ''], [boolean $isHref = true], string $originaltext)
 HTML menubar ([string $pushcontent = ''], [string $type = ''], [string $add = ''])
 HTML pattern2tag ([string $text = ''])
 HTML pencil ([string $php_vars = ""], [string $file = "popup.php"], [ $html = "title='Click to edit in a new window' "], [string $icon = "b_edit.png"])
 HTML searchStringOnline (string $strSearch, [mixed $category = ''], [ $isEscaped = false])
 HTML select (array $arrValueToOption, string $name, [string $default = ''], [string $structure = ''], [string $preselected = 'option'])
 string tag2pattern (string $text)
Variables
mixed $array (line 99)
  • access: public
mixed $contenttype (line 149)
  • access: public
mixed $doOptionGroup = FALSE (line 104)
  • access: public
mixed $isHref (line 150)
  • access: public
mixed $name (line 100)
  • access: public
mixed $searchtext (line 148)
  • access: public
mixed $text (line 147)
  • access: public
Methods
emphase (line 164)

Emphase genera, references ...

Highlighting for several cases: genera, references, maps, put references into $_SESSION variable with putToArray()

HTML emphase ([ &$originaltext = ''], [mixed $replacetext = ''], [string $contenttype = ''], [boolean $isHref = true], string $originaltext)
  • string $originaltext: original text, e.g. in wikipedia like syntax
  • mixed $replacetext: text to replace
  • string $contenttype: for switch different cases, e.g. idtogenus
  • boolean $isHref: true: use REQUEST_URI (make links to page itself); false: 'chirokey.php?show=references' (whole reference list)
  • &$originaltext
menubar (line 630)

menu bar for popup.php

If you want to change the menu with its inserted code (JavaScript) you can alter/add values Just copy and modify a <span>...</span> tag

  • return: <div class='menuicons'>Menu elements...</div>
HTML menubar ([string $pushcontent = ''], [string $type = ''], [string $add = ''])
  • string $pushcontent: which text to insert
  • string $type: types are font, tools, list, table, timestamp, image, sections, openlayermap, wrapmodus
  • string $add: content to be added
pattern2tag (line 378)

create HTML from wikipedia like syntax

Highlighting the whole page stored in database table 'characters': lists, tables, sections, overlib features (JavaScript library), special characters, ....

HTML pattern2tag ([string $text = ''])
  • string $text: original text, e.g. in wikipedia like syntax
pencil (line 596)

small icon pencil

  • return: <a>Pencil Icon</a>
HTML pencil ([string $php_vars = ""], [string $file = "popup.php"], [ $html = "title='Click to edit in a new window' "], [string $icon = "b_edit.png"])
  • string $php_vars: php variables
  • string $file: which file is used?
  • string $icon: which icon
  • $html
searchStringOnline (line 753)

Searches a string in online databases

  • todo: use POST methods
HTML searchStringOnline (string $strSearch, [mixed $category = ''], [ $isEscaped = false])
  • string $strSearch: (composed) string to be searched, e.g. 'Genus+species'. Is splitted sometimes.
  • mixed $category: is one of 'ITIS', 'GoogleImgage', 'GoogleScholar', 'Scirius', 'ScienceDirect', 'AskImages', 'Jstor', 'FaunaEuropea'
  • $isEscaped
select (line 115)

creates select options

  • return: <select>...</select>
  • access: public
HTML select (array $arrValueToOption, string $name, [string $default = ''], [string $structure = ''], [string $preselected = 'option'])
  • array $arrValueToOption: an array with [value] -> [option]
  • string $name: element's name
  • string $default: a default (preselected) option or a value. Produces selected='true'
  • string $structure: some additional settings for HTML-selection, e.g. JavaScript
  • string $preselected: some additional settings for HTML-selection, e.g. JavaScript
tag2pattern (line 534)

remove some HTML syntax to wikipedia like ones

string tag2pattern (string $text)
  • string $text: given HTML text

Documentation generated on Mon, 14 Dec 2009 14:37:08 +0100 by phpDocumentor 1.4.2