Lines Matching refs:value
59 public function isSatisfiedBy(DateTime $date, $value) argument
62 if ($value == '?') {
69 if ($value == 'L') {
74 if (strpos($value, 'W')) {
76 $targetDay = substr($value, 0, strpos($value, 'W'));
85 return $this->isSatisfied($date->format('d'), $value);
106 * @param string $value
109 public function validate($value) argument
112 if ($value === '?' || $value === '*' || $value === 'L') {
117 if ((bool) preg_match('/^\d{1,2}$/', $value) && ($value >= 1 && $value <= 31)) {
122 if ((bool) preg_match('/-/', $value)) {
124 if ((bool) preg_match('/,/', $value)) {
128 $chunks = explode('-', $value);
139 if ((bool) preg_match('/,/', $value)) {
141 if ((bool) preg_match('/-/', $value)) {
145 $chunks = explode(',', $value);
156 if ((bool) preg_match('/\//', $value)) {
157 $chunks = explode('/', $value);
167 if ((bool) preg_match('/^\d{1,2}W$/', $value)) {