In Joomla's profile plugin, I came across these lines of code
if (!HTMLHelper::isRegistered('users.url'))
{
HTMLHelper::register('users.url', array(__CLASS__, 'url'));
}
if (!HTMLHelper::isRegistered('users.calendar'))
{
HTMLHelper::register('users.calendar', array(__CLASS__, 'calendar'));
}
if (!HTMLHelper::isRegistered('users.tos'))
{
HTMLHelper::register('users.tos', array(__CLASS__, 'tos'));
}
if (!HTMLHelper::isRegistered('users.dob'))
{
HTMLHelper::register('users.dob', array(__CLASS__, 'dob'));
}
I checked Joomla API, but still don't quite get what HTMLHelper
does. And it says isRegistered
is to test if the key is registered - register where?