Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
S
stats-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneurs
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
stats-facil
Validations
238f4972
Valider
238f4972
rédigé
11 years ago
par
mattab
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Fix notice
parent
353bb6b1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
plugins/Events/API.php
+1
-4
1 ajout, 4 suppressions
plugins/Events/API.php
plugins/Events/Events.php
+4
-4
4 ajouts, 4 suppressions
plugins/Events/Events.php
plugins/VisitorGenerator
+1
-1
1 ajout, 1 suppression
plugins/VisitorGenerator
avec
6 ajouts
et
9 suppressions
plugins/Events/API.php
+
1
−
4
Voir le fichier @
238f4972
...
@@ -55,11 +55,8 @@ class API extends \Piwik\Plugin\API
...
@@ -55,11 +55,8 @@ class API extends \Piwik\Plugin\API
/**
/**
* @ignore
* @ignore
*/
*/
public
function
getActionToLoadSubtables
(
$apiMethod
,
$secondaryDimension
=
false
)
public
function
getActionToLoadSubtables
(
$apiMethod
,
$secondaryDimension
)
{
{
if
(
empty
(
$secondaryDimension
))
{
$secondaryDimension
=
$this
->
getDefaultSecondaryDimension
(
$apiMethod
);
}
$recordName
=
$this
->
getRecordNameForAction
(
$apiMethod
,
$secondaryDimension
);
$recordName
=
$this
->
getRecordNameForAction
(
$apiMethod
,
$secondaryDimension
);
$apiMethod
=
array_search
(
$recordName
,
$this
->
mappingApiToRecord
);
$apiMethod
=
array_search
(
$recordName
,
$this
->
mappingApiToRecord
);
return
$apiMethod
;
return
$apiMethod
;
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
plugins/Events/Events.php
+
4
−
4
Voir le fichier @
238f4972
...
@@ -150,10 +150,9 @@ class Events extends \Piwik\Plugin
...
@@ -150,10 +150,9 @@ class Events extends \Piwik\Plugin
$documentation
=
$this
->
getMetricDocumentation
();
$documentation
=
$this
->
getMetricDocumentation
();
$labelTranslations
=
$this
->
getLabelTranslations
();
$labelTranslations
=
$this
->
getLabelTranslations
();
$secondaryDimension
=
$this
->
getSecondaryDimensionFromRequest
();
$order
=
0
;
$order
=
0
;
foreach
(
$labelTranslations
as
$action
=>
$translations
)
{
foreach
(
$labelTranslations
as
$action
=>
$translations
)
{
$secondaryDimension
=
$this
->
getSecondaryDimensionFromRequest
(
$action
);
$actionToLoadSubtables
=
API
::
getInstance
()
->
getActionToLoadSubtables
(
$action
,
$secondaryDimension
);
$actionToLoadSubtables
=
API
::
getInstance
()
->
getActionToLoadSubtables
(
$action
,
$secondaryDimension
);
$reports
[]
=
array
(
$reports
[]
=
array
(
'category'
=>
Piwik
::
translate
(
'Events_Events'
),
'category'
=>
Piwik
::
translate
(
'Events_Events'
),
...
@@ -216,7 +215,7 @@ class Events extends \Piwik\Plugin
...
@@ -216,7 +215,7 @@ class Events extends \Piwik\Plugin
// eg. 'Events.getCategory'
// eg. 'Events.getCategory'
$apiMethod
=
$view
->
requestConfig
->
getApiMethodToRequest
();
$apiMethod
=
$view
->
requestConfig
->
getApiMethodToRequest
();
$secondaryDimension
=
$this
->
getSecondaryDimensionFromRequest
();
$secondaryDimension
=
$this
->
getSecondaryDimensionFromRequest
(
$apiMethod
);
$view
->
config
->
subtable_controller_action
=
API
::
getInstance
()
->
getActionToLoadSubtables
(
$apiMethod
,
$secondaryDimension
);
$view
->
config
->
subtable_controller_action
=
API
::
getInstance
()
->
getActionToLoadSubtables
(
$apiMethod
,
$secondaryDimension
);
$view
->
config
->
columns_to_display
=
array
(
'label'
,
'nb_events'
,
'sum_event_value'
);
$view
->
config
->
columns_to_display
=
array
(
'label'
,
'nb_events'
,
'sum_event_value'
);
...
@@ -297,8 +296,9 @@ class Events extends \Piwik\Plugin
...
@@ -297,8 +296,9 @@ class Events extends \Piwik\Plugin
/**
/**
* @return mixed
* @return mixed
*/
*/
protected
function
getSecondaryDimensionFromRequest
()
protected
function
getSecondaryDimensionFromRequest
(
$apiMethod
)
{
{
$defaultSecondaryDimension
=
API
::
getInstance
()
->
getDefaultSecondaryDimension
(
$apiMethod
);
return
Common
::
getRequestVar
(
'secondaryDimension'
,
false
,
'string'
);
return
Common
::
getRequestVar
(
'secondaryDimension'
,
false
,
'string'
);
}
}
}
}
Ce diff est replié.
Cliquez pour l'agrandir.
VisitorGenerator
@
a60c3c63
Comparer
728645ac
...
a60c3c63
Subproject commit
728645ac2dbd9a1f74ac59ecea156f44e138c601
Subproject commit
a60c3c63088d339a6ca8dd630422eb33833997f4
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter