Class miUIUtil

Description

Offer same often used user interface functions

  • copyright: Mirchev Ideas Ltd. © 2003, 2004

Located in /view/UIUtil.inc (line 22)


	
			
Method Summary
 void dateValidator (int $index, string $fieldValue, object $objDataManager)
 void decimalValidator (int $index, string $fieldValue, object $objDataManager)
 void emailValidator (int $index, string $fieldValue, object $objDataManager)
 void &getConstDropdown (string $name, int $selected, array $optionsArray)
 void getCurrentDateTime (int $index, string $fieldValue, object $objDataManager)
 void gsmValidator (int $index, string $fieldValue, object $objDataManager)
 void httpValidator (int $index, string $fieldValue, object $objDataManager)
 void icqValidator (int $index, string $fieldValue, object $objDataManager)
 void intValidator (int $index, string $fieldValue, object $objDataManager)
 void ipValidator (int $index, string $fieldValue, object $objDataManager)
 void maxLengthValidator (int $index, string $fieldValue, object $objDataManager)
 void minLengthValidator (int $index, string $fieldValue, object $objDataManager)
 void uniqueValidator (int $index, string $fieldValue, object $objDataManager)
Methods
dateValidator (line 53)

Validates date set by user

  • access: public
void dateValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the date
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if date is valid or false if it is not
decimalValidator (line 142)

Validates decimal number set by user

  • access: public
void decimalValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if number is valid decimal value or false if it is not
emailValidator (line 106)

Validates email set by user

  • access: public
void emailValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if email is valid or false if it is not
getConstDropdown (line 34)

Returns HTML code for a dropdown menu ("select" element) from a specify array

  • access: public
void &getConstDropdown (string $name, int $selected, array $optionsArray)
  • string $name: name of the select element
  • int $selected: which key is selected
  • array $optionsArray: array whit the dropdown menu elements values
getCurrentDateTime (line 196)

Return current date and time

  • access: public
void getCurrentDateTime (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return string current date and time
gsmValidator (line 211)

Validates gsm number set by user

  • access: public
void gsmValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if gsm number is valid or false if it is not
httpValidator (line 178)

Validates URL address set by user

  • access: public
void httpValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if URL address is valid or false if it is not
icqValidator (line 160)

Validates ICQ number set by user

  • access: public
void icqValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if ICQ number is valid or false if it is not
intValidator (line 124)

Validates integer number set by user

  • access: public
void intValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if number is valid integer or false if it is not
ipValidator (line 229)

Validates IP number

  • access: public
void ipValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the email
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if IP number is valid or false if it is not
maxLengthValidator (line 73)

Validates if the value set by user for a specify field is not exceed the maximum length for the field

  • access: public
void maxLengthValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the value
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if value isn't exceed maximum length or false if it is
minLengthValidator (line 90)

Validates if the value set by user for a specify field is exceed the minimum length for the field

  • access: public
void minLengthValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: string with the value
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if value is exceed minimum length or false if it is not
uniqueValidator (line 246)

Validates value for matchless in DB

  • access: public
void uniqueValidator (int $index, string $fieldValue, object $objDataManager)
  • int $index: index of the field
  • string $fieldValue: checked value
  • object $objDataManager: object of class miDataManager() or its subclasses return boolean true if value is unique or false if it is not

Documentation generated on Mon, 18 Oct 2004 14:58:32 +0300 by phpDocumentor 1.2.3