|
Support Incident Tracker GIT4.x
|
Go to the source code of this file.
Functions | |
| __autoload ($name) | |
Variables | |
| if(!extension_loaded('gd')) trigger_error(" requires the gd | module |
| if(!extension_loaded('gd')) trigger_error(" requires the gd | E_USER_ERROR |
| $type = clean_fixed_list($_REQUEST['type'], array('pie','line','bar')) | |
| $data = explode('|',cleanvar($_REQUEST['data'])) | |
| $legends = explode('|', cleanvar($_REQUEST['legends'], TRUE, FALSE, FALSE)) | |
| $title = urldecode(cleanvar($_REQUEST['title'])) | |
| $unit = cleanvar($_REQUEST['unit']) | |
| $chart = new $CONFIG['default_chart'](500, 150) | |
| __autoload | ( | $ | name | ) |
Definition at line 29 of file chart.php.
{
$name = strtolower($name);
$locations = array(APPLICATION_LIBPATH . "chart_{$name}.class.php",
APPLICATION_PLUGINPATH . $name . DIRECTORY_SEPARATOR . "chart_{$name}.class.php",
APPLICATION_PLUGINPATH . $name . DIRECTORY_SEPARATOR . "{$name}.class.php");
foreach ($locations AS $l)
{
if (file_exists($l))
{
require_once ($l);
return true;
}
}
return false;
}
debug_log("Charting library being used is {$CONFIG['default_chart']}");
$chart = new $CONFIG['default_chart'](500, 150);
$chart->setTitle($title);
$chart->setData($data);
$chart->setLegends($legends);
$chart->setUnit($unit);
switch ($type)
{
case 'pie':
$chart->draw_pie_chart();
break;
case 'line':
$chart->draw_line_chart();
break;
case 'bar':
$chart->draw_bar_chart();
break;
default:
$chart->draw_error();
}
| $data = explode('|',cleanvar($_REQUEST['data'])) |
Definition at line 24 of file chart.php.
Referenced by Snoopy::_httprequest(), nusoap_server_mime::addAttachment(), nusoap_client_mime::addAttachment(), MIME_mail::attach(), soap_transport_http::buildPayload(), wsdl::character_data(), nusoap_parser::character_data(), create_report(), dashboard_tms_backup(), MIME_mail::fattach(), wsdl::fetchWSDL(), RSSCache::get(), nusoap_server_mime::getHTTPBody(), nusoap_client_mime::getHTTPBody(), soap_transport_http::getResponse(), soap_transport_http::isSkippableCurlHeader(), pagination_array(), nusoap_server::parse_request(), soap_transport_http::parseCookie(), nusoap_server_mime::parseRequest(), nusoap_server::parseRequest(), nusoap_client_mime::parseResponse(), nusoap_client::parseResponse(), wsdl::parseWSDL(), nusoap_xmlschema::schemaCharacterData(), soap_transport_http::send(), soap_transport_http::sendHTTPS(), soap_transport_http::sendRequest(), nusoap_xmlschema::serializeTypeDef(), nusoap_server::service(), RSSCache::set(), stripslashes_array(), RSSCache::unserialize(), nusoap_base::varDump(), and wsdl::webDescription().
| $legends = explode('|', cleanvar($_REQUEST['legends'], TRUE, FALSE, FALSE)) |
| if (!extension_loaded('gd')) trigger_error(" requires the gd E_USER_ERROR |
Definition at line 20 of file chart.php.
Referenced by User::add(), Contact::add(), authenticate(), authenticateContact(), authenticateLDAP(), Contact::check_valid(), checks_to_html(), clean_fixed_list(), close_billable_incident(), create_incident(), create_incident_feedback(), create_incident_from_incoming(), create_temp_incoming(), customerExistsInDB(), dashboard_rss_edit(), dashboard_watch_incidents_edit(), decrement_free_incidents(), delete_signature(), display_update_page(), does_contact_have_billable_contract(), drafts_waiting_on_incident(), get_tag_id(), give_overview(), group_user_selector(), guess_contract_id(), incident(), incident_backup_switchover(), incident_sla(), increment_incidents_used(), is_day_bank_holiday(), kb_article(), ldap_getDetails(), ldapOpen(), login(), MagpieRSS::MagpieRSS(), mark_task_completed(), move_update_to_incident(), new_update(), populate_syslang(), process_new_contact(), reopen_incident(), replace_tags(), reserve_monies(), saction_ChaseCustomers(), saction_ldapSync(), saction_tms_backup(), saction_tms_backup_purge(), schedule_action_done(), schedule_action_started(), set_user_status(), setup_user_triggers(), show_form_errors(), sit_error_handler(), tms_backup_save(), transition_reserved_monites(), unreserve_monies(), update(), update_contract_balance(), update_last_billed_time(), update_transaction(), upgrade_dashlets(), upload_file(), and user_alert().