/page_templates/ccm_table.php

Description
Functions
ccm_table (line 17)

function ccm_table() generates an html data table from an SQL associative array,

this loads the object listings for all config objects and handles copy,download,info,delete commands as well as the search bar, pagination, etc. This is the main display function of the CCM

  • return: - returns large html string of table data for nagios objects
string ccm_table (array $args, [array $returnContent = array(0,'')], array $args['data'], string $args['nameKey'], string $args['descKey'])
  • array $args: storage array for all relevant information for
  • array $args['data']: - associative array of all DB table data for the selected table
  • string $args['nameKey']: - array index to identify item (also table header)
  • string $args['descKey']: - Descriptive array index to call (also table header)
  • array $returnContent: array(int, string) code and status message to send back to the main table
config_names_html (line 243)

config_names_html()

if $type==service, creates html for "config_name" filter for services, else returns empty string

  • return: html select list, or ''
string config_names_html (string $type,  $names)
  • string $type: nagios object type (host,service, contact, etc)
  • $names
do_pagenumbers (line 277)

function do_page_numbers()

creates page numbers based on how many results are being processed for the tables

  • return: html string of page numbers with link
string do_pagenumbers (int $page, int $start, int $limit, int $resultCount, string $type)
  • int $page: the current page
  • int $start: calculated starting number for results
  • int $limit: the session result limit
  • int $resultCount: total number of results for the object selected
  • string $type: the nagios object type (host,service, contact, etc)

Documentation generated on Thu, 04 Aug 2011 14:15:14 -0500 by phpDocumentor 1.4.3