[ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 384 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
yourls_stats_countries_map($countries, $id = null) X-Ref |
Echoes an image tag of Google Charts map from sorted array of 'country_code' => 'number of visits' (sort by DESC) param: array $countries Array of 'country_code' => 'number of visits' param: string $id Optional HTML element ID return: void |
yourls_stats_pie($data, $limit = 10, $size = '340x220', $id = null) X-Ref |
Echoes an image tag of Google Charts pie from sorted array of 'data' => 'value' (sort by DESC). Optional $limit = (integer) limit list of X first countries, sorted by most visits param: array $data Array of 'data' => 'value' param: int $limit Optional limit list of X first countries param: $size Optional size of the image param: $id Optional HTML element ID return: void |
yourls_build_list_of_days($dates) X-Ref |
Build a list of all daily values between d1/m1/y1 to d2/m2/y2. param: array $dates return: array[] Array of arrays of days, months, years |
yourls_stats_line($values, $id = null) X-Ref |
Echoes an image tag of Google Charts line graph from array of values (eg 'number of clicks'). $legend1_list & legend2_list are values used for the 2 x-axis labels. $id is an HTML/JS id param: array $values Array of values (eg 'number of clicks') param: string $id HTML element id return: void |
yourls_days_in_month($month, $year) X-Ref |
Return the number of days in a month. From php.net. param: int $month param: int $year return: int |
yourls_stats_get_best_day($list_of_days) X-Ref |
Get max value from date array of 'Aug 12, 2012' = '1337' param: array $list_of_days return: array |
yourls_get_domain($url, $include_scheme = false) X-Ref |
Return domain of a URL param: string $url param: bool $include_scheme return: string |
yourls_get_favicon_url($url) X-Ref |
Return favicon URL param: string $url return: string |
yourls_scale_data($data ) X-Ref |
Scale array of data from 0 to 100 max param: array $data return: array |
yourls_array_granularity($array, $grain = 100, $preserve_max = true) X-Ref |
Tweak granularity of array $array: keep only $grain values. This make less accurate but less messy graphs when too much values. See https://developers.google.com/chart/image/docs/gallery/line_charts?hl=en#data-granularity param: array $array param: int $grain param: bool $preserve_max return: array |
yourls_google_array_to_data_table($data) X-Ref |
Transform data array to data table for Google API param: array $data return: string |
yourls_google_viz_code($graph_type, $data, $options, $id ) X-Ref |
Return javascript code that will display the Google Chart param: string $graph_type param: string $data param: var $options param: string $id return: string |
Generated: Fri Mar 28 05:10:25 2025 | Cross-referenced by PHPXref 0.7.1 |