Skip to content
Extraits de code Groupes Projets
Valider c0a29a9e rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

refs #3490 removed segment definition as it apparently depends on idSites...

refs #3490 removed segment definition as it apparently depends on idSites which I do not quite understand why
parent c9f41a7e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -19,30 +19,15 @@ use Piwik\Tracker\Action;
class UserId extends VisitDimension
{
/**
* This will be the name of the column in the log_visit table if a $columnType is specified.
* @var string
*/
protected $columnName = 'user_id';
/**
* If a columnType is defined, we will create this a column in the MySQL table having this type. Please make sure
* MySQL will understand this type. Once you change the column type the Piwik platform will notify the user to
* perform an update which can sometimes take a long time so be careful when choosing the correct column type.
* @var string
*/
protected $columnType = 'VARCHAR(200) NOT NULL';
protected function configureSegments()
{
/*
$segment = new Segment();
$segment->setSegment('userId');
$segment->setCategory('General_Visit');
$segment->setName('CoreHome_UserId');
$segment->setAcceptedValues('Here you should explain which values are accepted/useful: Any number, for instance 1, 2, 3 , 99');
$this->addSegment($segment);*/
}
/**
* @param Request $request
* @param Visitor $visitor
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter