Class miUIUtil

Description

Offer same often used user interface functions

  • copyright: Copyright (c) 2003-2007 Mirchev Ideas Ltd. All rights reserved.

Located in /view/UIUtil.php (line 15)


	
			
Method Summary
static void createDropdownFilter (miView $view, miTable $table, string $field, array $values, string $condition)
static void &getConstDropdown (string $name, int $selected, array $optionsArray)
static array templetizeAndEscapeRows (array $rows)
static array templetizeRows (array $rows)
static array transposeRows (array $rows)
Methods
static method createDropdownFilter (line 46)

Creates drop-down filter The filter is applied to the $table

  • access: public
static void createDropdownFilter (miView $view, miTable $table, string $field, array $values, string $condition)
  • miView $view
  • miTable $table: the table to apply the filter to
  • string $field: the field name
  • array $values: associative array with the values of the filter
  • string $condition: the filter condition
static method getConstDropdown (line 25)

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

  • access: public
static 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
static method templetizeAndEscapeRows (line 114)

Makes the hash of arrays $rows suitable for the miTemplateParserSectionInfo values

  • access: public
static array templetizeAndEscapeRows (array $rows)
  • array $rows: transposed rows read from the database
static method templetizeRows (line 98)

Makes the hash of arrays $rows suitable for the miTemplateParserSectionInfo values

  • access: public
static array templetizeRows (array $rows)
  • array $rows: transposed rows read from the database
static method transposeRows (line 70)

Transposes the $rows array from array of hashes into a hash of arrays. All values will have the &, ", < and > escaped, except the values for keys starting with HTML_

  • return: array with the new transposed rows
  • access: public
static array transposeRows (array $rows)
  • array $rows: readed rows from the database

Documentation generated on Thu, 08 May 2008 16:57:51 +0300 by phpDocumentor 1.4.1