function __construct($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '') { parent::__construct(); $this->iRate = 0; switch ($sParamName) { case 'calendar': $GLOBALS['_page']['header'] = _t('_sys_profiles_caption_browse_by_day') . ': ' . getLocaleDate(strtotime("{$sParamValue}-{$sParamValue1}-{$sParamValue2}"), BX_DOL_LOCALE_DATE_SHORT); $sParamValue = (int) $sParamValue; $sParamValue1 = (int) $sParamValue1; $sParamValue2 = (int) $sParamValue2; $this->aCurrent['restriction']['calendar-min'] = array('value' => "'{$sParamValue}-{$sParamValue1}-{$sParamValue2} 00:00:00'", 'field' => 'DateReg', 'operator' => '>=', 'no_quote_value' => true); $this->aCurrent['restriction']['calendar-max'] = array('value' => "'{$sParamValue}-{$sParamValue1}-{$sParamValue2} 23:59:59'", 'field' => 'DateReg', 'operator' => '<=', 'no_quote_value' => true); $this->aCurrent['title'] = $GLOBALS['_page']['header']; break; } }
function __construct() { parent::__construct(); }