Lines Matching refs:value
14 * @param string $value Value to test
18 public function isSatisfied($dateValue, $value) argument
20 if ($this->isIncrementsOfRanges($value)) {
21 return $this->isInIncrementsOfRanges($dateValue, $value);
22 } elseif ($this->isRange($value)) {
23 return $this->isInRange($dateValue, $value);
26 return $value == '*' || $dateValue == $value;
32 * @param string $value Value to test
36 public function isRange($value) argument
38 return strpos($value, '-') !== false;
44 * @param string $value Value to test
48 public function isIncrementsOfRanges($value) argument
50 return strpos($value, '/') !== false;
57 * @param string $value Value to test
61 public function isInRange($dateValue, $value) argument
63 $parts = array_map('trim', explode('-', $value, 2));
72 * @param string $value Value to test
76 public function isInIncrementsOfRanges($dateValue, $value) argument
78 $parts = array_map('trim', explode('/', $value, 2));