Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2009-08-23 18:27:44 +0400
committerrobocoder <anthon.pang@gmail.com>2009-08-23 18:27:44 +0400
commitd8cf9322193bc8d400958732dd5ccdd2a2fcda1e (patch)
treef53ff50dff8dc00c4a82cc17914696be80014357 /plugins/Provider/functions.php
parent9f2433a6749f97a42ef9c308593c6323f546965c (diff)
Tweak phpdoc config. Add some missing phpdocs.
git-svn-id: http://dev.piwik.org/svn/trunk@1431 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Provider/functions.php')
-rw-r--r--plugins/Provider/functions.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Provider/functions.php b/plugins/Provider/functions.php
index bab04d1949..4397c40867 100644
--- a/plugins/Provider/functions.php
+++ b/plugins/Provider/functions.php
@@ -10,6 +10,12 @@
* @package Piwik_Provider
*/
+/**
+ * Return hostname portion of a domain name
+ *
+ * @param string $in
+ * @return string Host name, IP (if IP address didn't resolve), or Unknown
+ */
function Piwik_getHostnameName($in)
{
if(empty($in))
@@ -27,6 +33,12 @@ function Piwik_getHostnameName($in)
return $in;
}
+/**
+ * Return URL for a given domain name
+ *
+ * @param string $in hostname
+ * @return string URL
+ */
function Piwik_getHostnameUrl($in)
{
if(empty($in)