Class mosHTML

Description

Utility class for all HTML drawing classes

Located in /includes/mamboHTML.php (line 19)


	
			
Method Summary
 void BackButton ( &$params, [ $hide_js = NULL])
 void cleanText ( &$text)
 void CloseButton ( &$params, [ $hide_js = NULL])
 void emailCloaking ( $mail, [ $mailto = 1], [ $text = ''], [ $email = 1])
 void encoding_converter ( $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 ( $value, [ $text = ''])
 string monthSelectList (string $tag_name, string $tag_attribs, mixed $selected)
 void PrintIcon ( &$row,  &$params,  $hide_js,  $link, [ $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 ( $base_href,  $field, [ $state = 'none'])
 void writableCell ( $folder)
 string yesnoRadioList (string $tag_name, string $tag_attribs, mixed $selected, [ $yes = false], [ $no = false])
 string yesnoSelectList (string $tag_name, string $tag_attribs, mixed $selected, [ $yes = false], [ $no = false])
Methods
BackButton (line 245)

Writes Back Button

void BackButton ( &$params, [ $hide_js = NULL])
  • &$params
  • $hide_js
cleanText (line 261)

Cleans text of all formating and scripting code

void cleanText ( &$text)
  • &$text
CloseButton (line 227)

Writes Close Button

void CloseButton ( &$params, [ $hide_js = NULL])
  • &$params
  • $hide_js
emailCloaking (line 319)

simple Javascript Cloaking

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

void emailCloaking ( $mail, [ $mailto = 1], [ $text = ''], [ $email = 1])
  • $mail
  • $mailto
  • $text
  • $email
encoding_converter (line 367)
void encoding_converter ( $text)
  • $text
idBox (line 196)
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 86)

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 21)
void makeOption ( $value, [ $text = ''])
  • $value
  • $text
monthSelectList (line 106)

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 277)

Writes Print icon

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

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 46)

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 204)
void sortIcon ( $base_href,  $field, [ $state = 'none'])
  • $base_href
  • $field
  • $state
writableCell (line 28)
void writableCell ( $folder)
  • $folder
yesnoRadioList (line 180)

Writes a yes/no radio list

  • return: HTML for the radio list
string yesnoRadioList (string $tag_name, string $tag_attribs, mixed $selected, [ $yes = false], [ $no = false])
  • 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
  • $yes
  • $no
yesnoSelectList (line 132)

Writes a yes/no select list

  • return: HTML for the select list values
string yesnoSelectList (string $tag_name, string $tag_attribs, mixed $selected, [ $yes = false], [ $no = false])
  • 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
  • $yes
  • $no

Documentation generated on Mon, 05 May 2008 16:21:02 +0400 by phpDocumentor 1.4.0