| Server IP : 213.186.33.4 / Your IP : 216.73.216.40 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/piwik/plugins/TagManager/Template/Variable/ |
Upload File : |
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\TagManager\Template\Variable;
use Piwik\Settings\FieldConfig;
use Piwik\Validators\NotEmpty;
class TimeSinceLoadVariable extends BaseVariable
{
public function getCategory()
{
return self::CATEGORY_DATE;
}
public function getIcon()
{
return 'plugins/TagManager/images/icons/timer.svg';
}
public function getParameters()
{
return array(
$this->makeSetting('unit', 'ms', FieldConfig::TYPE_STRING, function (FieldConfig $field) {
$field->title = 'Unit';
$field->description = 'Select in which unit you want to retrieve the time.';
$field->uiControl = FieldConfig::UI_CONTROL_SINGLE_SELECT;
$field->validators[] = new NotEmpty();
$field->availableValues = array(
'ms' => 'Milliseconds',
's' => 'Seconds',
'm' => 'Minutes'
);
}),
);
}
}