From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../tickets/protected/pages/Ticket284Component.php | 206 ++++++++++----------- 1 file changed, 103 insertions(+), 103 deletions(-) (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php b/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php index da6ad153..4405ca44 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php @@ -1,103 +1,103 @@ -ShowHours && $this->ShowMinutes) - { - throw new TConfigurationException( - 'Invalid OPSDatePicker Config: You cannot specify ShowMinutes="true" while ShowHours="false"' - ); - } - } - - public function getDatePicker() - { - $this->ensureChildControls(); - return $this->getRegisteredObject('datePicker'); - } - - public function getHourPicker() - { - $this->ensureChildControls(); - return $this->getRegisteredObject('hourPicker'); - } - - public function getMinutePicker() - { - $this->ensureChildControls(); - return $this->getRegisteredObject('minutePicker'); - } - - public function getShowHours() - { - return $this->HourPicker->Visible; - } - - public function setShowHours($value) - { - $this->HourPicker->Visible = TPropertyValue::ensureBoolean($value); - } - - public function getShowMinutes() - { - return $this->MinutePicker->Visible; - } - - public function setShowMinutes($value) - { - $this->MinutePicker->Visible = TPropertyValue::ensureBoolean($value); - } - - public function getTimeStamp() - { - return strtotime($this->Date); - } - - public function setTimeStamp($value) - { - $ts = TPropertyValue::ensureInteger($value); - $this->DatePicker->TimeStamp = $ts; - $this->HourPicker->SelectedValue = date('H', $ts); - $this->MinutePicker->SelectedValue = date('i', $ts); - } - - public function getDate() - { - $dateStr = $this->DatePicker->Date; - if ($this->ShowHours){ - $dateStr .= ' '.$this->HourPicker->SelectedValue; - } - if ($this->ShowMinutes){ - $dateStr .= ':'.$this->MinutePicker->SelectedValue; - } - return $dateStr; - } - - public function setDate($value) - { - $dateStr = TPropertyValue::ensureString($value); - $this->TimeStamp = strtotime($dateStr); - } - - public function getValidationPropertyValue() - { - if ($this->DatePicker->Date === ''){ - return ''; - } - else{ - return $this->TimeStamp; - } - } - public function getIsValid() - { - return $this->_isValid; - } - public function setIsValid($value) - { - $this->_isValid=TPropertyValue::ensureBoolean($value); - } -} -?> +ShowHours && $this->ShowMinutes) + { + throw new TConfigurationException( + 'Invalid OPSDatePicker Config: You cannot specify ShowMinutes="true" while ShowHours="false"' + ); + } + } + + public function getDatePicker() + { + $this->ensureChildControls(); + return $this->getRegisteredObject('datePicker'); + } + + public function getHourPicker() + { + $this->ensureChildControls(); + return $this->getRegisteredObject('hourPicker'); + } + + public function getMinutePicker() + { + $this->ensureChildControls(); + return $this->getRegisteredObject('minutePicker'); + } + + public function getShowHours() + { + return $this->HourPicker->Visible; + } + + public function setShowHours($value) + { + $this->HourPicker->Visible = TPropertyValue::ensureBoolean($value); + } + + public function getShowMinutes() + { + return $this->MinutePicker->Visible; + } + + public function setShowMinutes($value) + { + $this->MinutePicker->Visible = TPropertyValue::ensureBoolean($value); + } + + public function getTimeStamp() + { + return strtotime($this->Date); + } + + public function setTimeStamp($value) + { + $ts = TPropertyValue::ensureInteger($value); + $this->DatePicker->TimeStamp = $ts; + $this->HourPicker->SelectedValue = date('H', $ts); + $this->MinutePicker->SelectedValue = date('i', $ts); + } + + public function getDate() + { + $dateStr = $this->DatePicker->Date; + if ($this->ShowHours){ + $dateStr .= ' '.$this->HourPicker->SelectedValue; + } + if ($this->ShowMinutes){ + $dateStr .= ':'.$this->MinutePicker->SelectedValue; + } + return $dateStr; + } + + public function setDate($value) + { + $dateStr = TPropertyValue::ensureString($value); + $this->TimeStamp = strtotime($dateStr); + } + + public function getValidationPropertyValue() + { + if ($this->DatePicker->Date === ''){ + return ''; + } + else{ + return $this->TimeStamp; + } + } + public function getIsValid() + { + return $this->_isValid; + } + public function setIsValid($value) + { + $this->_isValid=TPropertyValue::ensureBoolean($value); + } +} +?> -- cgit v1.2.3