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)
 
 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.

Reimplemented from sspmod_statistics_Statistics_Rulesets_BaseRule.

Definition at line 14 of file Ratio.php.

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 }

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.

Member Function Documentation

◆ availableFileSlots()

sspmod_statistics_Statistics_Rulesets_Ratio::availableFileSlots (   $timeres)

Reimplemented from sspmod_statistics_Statistics_Rulesets_BaseRule.

Definition at line 37 of file Ratio.php.

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

References $timeres.

◆ availableTimeRes()

sspmod_statistics_Statistics_Rulesets_Ratio::availableTimeRes ( )

Reimplemented from sspmod_statistics_Statistics_Rulesets_BaseRule.

Definition at line 32 of file Ratio.php.

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

◆ getDataSet()

sspmod_statistics_Statistics_Rulesets_Ratio::getDataSet (   $preferTimeRes,
  $preferTime 
)

Reimplemented from sspmod_statistics_Statistics_Rulesets_BaseRule.

Definition at line 57 of file Ratio.php.

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 }
resolveFileSlot($timeres, $preferTime)
Definition: Ratio.php:47
$preferTime
Definition: showstats.php:14
$fileslot
Definition: showstats.php:78
$preferTimeRes
Definition: showstats.php:15

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

+ Here is the call graph for this function:

◆ getTimeNavigation()

sspmod_statistics_Statistics_Rulesets_Ratio::getTimeNavigation (   $timeres,
  $preferTime 
)

Reimplemented from sspmod_statistics_Statistics_Rulesets_BaseRule.

Definition at line 52 of file Ratio.php.

53 {
54 return $this->refrule1->getTimeNavigation($timeres, $preferTime);
55 }

References $preferTime, and $timeres.

◆ resolveFileSlot()

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

Reimplemented from sspmod_statistics_Statistics_Rulesets_BaseRule.

Definition at line 47 of file Ratio.php.

48 {
49 return $this->refrule1->resolveFileSlot($timeres, $preferTime);
50 }

References $preferTime, and $timeres.

Referenced by getDataSet().

+ Here is the caller graph for this function:

◆ resolveTimeRes()

sspmod_statistics_Statistics_Rulesets_Ratio::resolveTimeRes (   $preferTimeRes)
protected

Reimplemented from sspmod_statistics_Statistics_Rulesets_BaseRule.

Definition at line 42 of file Ratio.php.

43 {
44 return $this->refrule1->resolveTimeRes($preferTimeRes);
45 }

References $preferTimeRes.

Referenced by getDataSet().

+ 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: