- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
// Базовые проверки на тип переменных
if ((isset($this->params['month']) && (string)$this->params['month']!==(string)(int)$this->params['month'])
|| (isset($this->params['season']) && (string)$this->params['season']!==(string)(int)$this->params['season'])
|| (isset($this->params['year']) && (string)$this->params['year'] !== (string)(int)$this->params['year']) // проверки на вхождение в диапзон дат
|| (isset($this->params['year']) && !in_array($this->params['year'], $this->data['years']))
|| (isset($this->params['season']) && !isset($this->data['seasons'][(string)(int)$this->params['season']]))
|| (isset($this->params['month']) && !isset($this->data['monthes'][(string)(int)$this->params['month']])) || false
|| (isset($this->params['month']) && isset($this->params['season']) && !in_array((string)(int)$this->params['month'], $this->data['seasons_monthes'][(string)(int)$this->params['season']])))
nobody 28.07.2011 20:43 # +1
nkarakin 28.07.2011 22:11 # −1
guest 28.07.2011 22:11 # −2
guest 29.07.2011 14:50 # +1