/** * Creates all Check related URLs for the site * * @param string $type The type of URL to make: 'list', 'add', 'edit', 'delete' * @param Meetup $obj The Check object for the edit and delete URL types * @return string The URL requested */ public static function getResultValue($data, $obj = NULL) { $value = false; if ($obj->getBaseline() == 'average') { $value = subarray_endvalue($data[0]->datapoints); } elseif ($obj->getBaseline() == 'median') { $value = subarray_median($data[0]->datapoints); } return $value; }