getId() public méthode

Returns a unique string ID for this dimension. The ID is built using the namespaced class name of the dimension, but is modified to be more human readable.
public getId ( ) : string
Résultat string eg, `"Referrers.Keywords"`
 /**
  * @param Dimension|null $lhs
  * @param Dimension|null $rhs
  * @return bool
  */
 private static function areDimensionsNotEqualAndNotNull($lhs, $rhs)
 {
     return !empty($lhs) && !empty($rhs) && $lhs->getId() != $rhs->getId();
 }
Exemple #2
0
 /**
  * Finds a top level report that provides stats for a specific Dimension.
  *
  * @param Dimension $dimension The dimension whose report we're looking for.
  * @return Report|null The
  * @api
  */
 public static function getForDimension(Dimension $dimension)
 {
     return ComponentFactory::getComponentIf(__CLASS__, $dimension->getModule(), function (Report $report) use($dimension) {
         return !$report->isSubtableReport() && $report->getDimension() && $report->getDimension()->getId() == $dimension->getId();
     });
 }