<?php
class newProfileTabs_Listener
{
public static function template_hook ($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
if ($hookName == 'member_view_tabs_heading')
{
$contents .= '<li><a href="{$requestPaths.requestUri}#ourTab">Our Tab</a></li>';
}
}
}
?>
Question:
I saw this above php file, static
by default is public
, right? so why put public static function
, not static function
, is there any reason behind?