Class mosHTML

Description

Utility class for all HTML drawing classes

Located in /includes/mambo.php (line 953)


	
			
Method Summary
void BackButton (mixed &$params, [mixed $hide_js = NULL])
void cleanText (mixed &$text)
void CloseButton (mixed &$params, [mixed $hide_js = NULL])
void emailCloaking (mixed $mail, [mixed $mailto = 1], [mixed $text = ''])
void encoding_converter (mixed $text)
string idBox (int $rowNum, int $recId, [boolean $checkedOut = false], [string $name = 'cid'])
string integerSelectList (int $start, int $end, int $inc, string $tag_name, string $tag_attribs, mixed $selected, [string $format = ""])
void makeOption (mixed $value, [mixed $text = ''])
string monthSelectList (string $tag_name, string $tag_attribs, mixed $selected)
void PrintIcon (mixed &$row, mixed &$params, mixed $hide_js, mixed $link, [mixed $status = NULL])
string radioList (array &$arr, string $tag_name, string $tag_attribs, [mixed $selected = null], [string $key = 'value'], [string $text = 'text'])
string selectList (array &$arr, string $tag_name, string $tag_attribs, string $key, string $text, [mixed $selected = NULL])
void sortIcon (mixed $base_href, mixed $field, [mixed $state = 'none'])
string treeSelectList (array &$src_list, array $src_id, array $tgt_list, array $tag_name, string $tag_attribs, string $key, string $text, string $selected, mixed 8)
void writableCell (mixed $folder)
string yesnoRadioList (string $tag_name, string $tag_attribs, mixed $selected, [mixed $yes = _CMN_YES], [mixed $no = _CMN_NO])
string yesnoSelectList (string $tag_name, string $tag_attribs, mixed $selected, [mixed $yes = _CMN_YES], [mixed $no = _CMN_NO])
Methods
BackButton (line 1228)

Writes Back Button

void BackButton (mixed &$params, [mixed $hide_js = NULL])
cleanText (line 1244)

Cleans text of all formating and scripting code

void cleanText (mixed &$text)
CloseButton (line 1210)

Writes Close Button

void CloseButton (mixed &$params, [mixed $hide_js = NULL])
emailCloaking (line 1302)

simple Javascript Cloaking

email cloacking by default replaces an email with a mailto link with email cloacked

void emailCloaking (mixed $mail, [mixed $mailto = 1], [mixed $text = ''])
encoding_converter (line 1341)
void encoding_converter (mixed $text)
idBox (line 1178)
string idBox (int $rowNum, int $recId, [boolean $checkedOut = false], [string $name = 'cid'])
  • int $rowNum: The row index
  • int $recId: The record id
  • boolean $checkedOut
  • string $name: The name of the form element
integerSelectList (line 1018)

Writes a select list of integers

  • return: HTML for the select list
string integerSelectList (int $start, int $end, int $inc, string $tag_name, string $tag_attribs, mixed $selected, [string $format = ""])
  • int $start: The start integer
  • int $end: The end integer
  • int $inc: The increment
  • string $tag_name: The value of the HTML name attribute
  • string $tag_attribs: Additional HTML attributes for the <select> tag
  • mixed $selected: The key that is selected
  • string $format: The printf format to be applied to the number
makeOption (line 954)
void makeOption (mixed $value, [mixed $text = ''])
monthSelectList (line 1038)

Writes a select list of month names based on Language settings

  • return: HTML for the select list values
string monthSelectList (string $tag_name, string $tag_attribs, mixed $selected)
  • string $tag_name: The value of the HTML name attribute
  • string $tag_attribs: Additional HTML attributes for the <select> tag
  • mixed $selected: The key that is selected
PrintIcon (line 1260)

Writes Print icon

void PrintIcon (mixed &$row, mixed &$params, mixed $hide_js, mixed $link, [mixed $status = NULL])
radioList (line 1129)

Generates an HTML radio list

  • return: HTML for the select list
string radioList (array &$arr, string $tag_name, string $tag_attribs, [mixed $selected = null], [string $key = 'value'], [string $text = 'text'])
  • array &$arr: An array of objects
  • string $tag_name: The value of the HTML name attribute
  • string $tag_attribs: Additional HTML attributes for the <select> tag
  • mixed $selected: The key that is selected
  • string $key: The name of the object variable for the option value
  • string $text: The name of the object variable for the option text
selectList (line 980)

Generates an HTML select list

  • return: HTML for the select list
string selectList (array &$arr, string $tag_name, string $tag_attribs, string $key, string $text, [mixed $selected = NULL])
  • array &$arr: An array of objects
  • string $tag_name: The value of the HTML name attribute
  • string $tag_attribs: Additional HTML attributes for the <select> tag
  • string $key: The name of the object variable for the option value
  • string $text: The name of the object variable for the option text
  • mixed $selected: The key that is selected
sortIcon (line 1186)
void sortIcon (mixed $base_href, mixed $field, [mixed $state = 'none'])
treeSelectList (line 1070)

Generates an HTML select list from a tree based query list

  • return: HTML for the select list
string treeSelectList (array &$src_list, array $src_id, array $tgt_list, array $tag_name, string $tag_attribs, string $key, string $text, string $selected, mixed 8)
  • mixed 8: The key that is selected
  • array &$src_list: Source array with id and parent fields
  • array $src_id: The id of the current list item
  • array $tgt_list: Target array. May be an empty array.
  • array $tag_name: An array of objects
  • string $tag_attribs: The value of the HTML name attribute
  • string $key: Additional HTML attributes for the <select> tag
  • string $text: The name of the object variable for the option value
  • string $selected: The name of the object variable for the option text
writableCell (line 961)
void writableCell (mixed $folder)
yesnoRadioList (line 1163)

Writes a yes/no radio list

  • return: HTML for the radio list
string yesnoRadioList (string $tag_name, string $tag_attribs, mixed $selected, [mixed $yes = _CMN_YES], [mixed $no = _CMN_NO])
  • string $tag_name: The value of the HTML name attribute
  • string $tag_attribs: Additional HTML attributes for the <select> tag
  • mixed $selected: The key that is selected
yesnoSelectList (line 1110)

Writes a yes/no select list

  • return: HTML for the select list values
string yesnoSelectList (string $tag_name, string $tag_attribs, mixed $selected, [mixed $yes = _CMN_YES], [mixed $no = _CMN_NO])
  • string $tag_name: The value of the HTML name attribute
  • string $tag_attribs: Additional HTML attributes for the <select> tag
  • mixed $selected: The key that is selected

Documentation generated on Fri, 4 Mar 2005 13:56:31 +1000 by phpDocumentor 1.3.0RC3