ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
sspmod_statistics_Statistics_Rulesets_Ratio Class Reference
+ Inheritance diagram for sspmod_statistics_Statistics_Rulesets_Ratio:
+ Collaboration diagram for sspmod_statistics_Statistics_Rulesets_Ratio:

Public Member Functions

 __construct ($statconfig, $ruleconfig, $ruleid, $available)
 Constructor. More...
 
 availableTimeRes ()
 
 availableFileSlots ($timeres)
 
 getTimeNavigation ($timeres, $preferTime)
 
 getDataSet ($preferTimeRes, $preferTime)
 
- Public Member Functions inherited from sspmod_statistics_Statistics_Rulesets_BaseRule
 __construct ($statconfig, $ruleconfig, $ruleid, $available)
 Constructor. More...
 
 getRuleID ()
 
 availableTimeRes ()
 
 availableFileSlots ($timeres)
 
 getTimeNavigation ($timeres, $preferTime)
 
 getDataSet ($preferTimeRes, $preferTime)
 

Protected Member Functions

 resolveTimeRes ($preferTimeRes)
 
 resolveFileSlot ($timeres, $preferTime)
 
- Protected Member Functions inherited from sspmod_statistics_Statistics_Rulesets_BaseRule
 resolveTimeRes ($preferTimeRes)
 
 resolveFileSlot ($timeres, $preferTime)
 

Protected Attributes

 $refrule1
 
 $refrule2
 
- Protected Attributes inherited from sspmod_statistics_Statistics_Rulesets_BaseRule
 $statconfig
 
 $ruleconfig
 
 $ruleid
 
 $available
 

Detailed Description

Definition at line 6 of file Ratio.php.

Constructor & Destructor Documentation

◆ __construct()

sspmod_statistics_Statistics_Rulesets_Ratio::__construct (   $statconfig,
  $ruleconfig,
  $ruleid,
  $available 
)

Constructor.

Definition at line 14 of file Ratio.php.

References sspmod_statistics_Statistics_Rulesets_BaseRule\$available, sspmod_statistics_Statistics_Rulesets_BaseRule\$ruleconfig, sspmod_statistics_Statistics_Rulesets_BaseRule\$ruleid, and sspmod_statistics_Statistics_Rulesets_BaseRule\$statconfig.

15  {
16  assert($statconfig instanceof SimpleSAML_Configuration);
17  assert($ruleconfig instanceof SimpleSAML_Configuration);
18 
19  parent::__construct($statconfig, $ruleconfig, $ruleid, $available);
20 
21  $refNames = $this->ruleconfig->getArray('ref');
22 
23  $statrulesConfig = $this->statconfig->getConfigItem('statrules');
24 
25  $statruleConfig1 = $statrulesConfig->getConfigItem($refNames[0]);
26  $statruleConfig2 = $statrulesConfig->getConfigItem($refNames[1]);
27 
28  $this->refrule1 = new sspmod_statistics_Statistics_Rulesets_BaseRule($this->statconfig, $statruleConfig1, $refNames[0], $available);
29  $this->refrule2 = new sspmod_statistics_Statistics_Rulesets_BaseRule($this->statconfig, $statruleConfig2, $refNames[1], $available);
30  }

Member Function Documentation

◆ availableFileSlots()

sspmod_statistics_Statistics_Rulesets_Ratio::availableFileSlots (   $timeres)

Definition at line 37 of file Ratio.php.

References $timeres.

38  {
39  return $this->refrule1->availableFileSlots($timeres);
40  }
$timeres
Definition: showstats.php:77

◆ availableTimeRes()

sspmod_statistics_Statistics_Rulesets_Ratio::availableTimeRes ( )

Definition at line 32 of file Ratio.php.

33  {
34  return $this->refrule1->availableTimeRes();
35  }

◆ getDataSet()

sspmod_statistics_Statistics_Rulesets_Ratio::getDataSet (   $preferTimeRes,
  $preferTime 
)

Definition at line 57 of file Ratio.php.

References $fileslot, $preferTime, $preferTimeRes, $timeres, resolveFileSlot(), and resolveTimeRes().

58  {
61 
62  $refNames = $this->ruleconfig->getArray('ref');
63 
64  $dataset = new sspmod_statistics_RatioDataset($this->statconfig, $this->ruleconfig, $refNames, $timeres, $fileslot);
65  return $dataset;
66  }
$fileslot
Definition: showstats.php:78
$timeres
Definition: showstats.php:77
$preferTimeRes
Definition: showstats.php:15
$preferTime
Definition: showstats.php:14
resolveFileSlot($timeres, $preferTime)
Definition: Ratio.php:47
+ Here is the call graph for this function:

◆ getTimeNavigation()

sspmod_statistics_Statistics_Rulesets_Ratio::getTimeNavigation (   $timeres,
  $preferTime 
)

Definition at line 52 of file Ratio.php.

References $preferTime, and $timeres.

53  {
54  return $this->refrule1->getTimeNavigation($timeres, $preferTime);
55  }
$timeres
Definition: showstats.php:77
$preferTime
Definition: showstats.php:14

◆ resolveFileSlot()

sspmod_statistics_Statistics_Rulesets_Ratio::resolveFileSlot (   $timeres,
  $preferTime 
)
protected

Definition at line 47 of file Ratio.php.

References $preferTime, and $timeres.

Referenced by getDataSet().

48  {
49  return $this->refrule1->resolveFileSlot($timeres, $preferTime);
50  }
$timeres
Definition: showstats.php:77
$preferTime
Definition: showstats.php:14
+ Here is the caller graph for this function:

◆ resolveTimeRes()

sspmod_statistics_Statistics_Rulesets_Ratio::resolveTimeRes (   $preferTimeRes)
protected

Definition at line 42 of file Ratio.php.

References $preferTimeRes.

Referenced by getDataSet().

43  {
44  return $this->refrule1->resolveTimeRes($preferTimeRes);
45  }
$preferTimeRes
Definition: showstats.php:15
+ Here is the caller graph for this function:

Field Documentation

◆ $refrule1

sspmod_statistics_Statistics_Rulesets_Ratio::$refrule1
protected

Definition at line 8 of file Ratio.php.

◆ $refrule2

sspmod_statistics_Statistics_Rulesets_Ratio::$refrule2
protected

Definition at line 9 of file Ratio.php.


The documentation for this class was generated from the following file: