* @author Jan Schneider <jan@horde.org>
* @package Kronolith
*/
-class Kronolith_FreeBusy_View
+abstract class Kronolith_FreeBusy_View
{
protected $_requiredMembers = array();
protected $_optionalMembers = array();
*
* @return string The html of the rendered fb view.
*/
- public function render($day = null)
+ public function render(Horde_Date $day = null)
{
global $prefs;
return $blocks;
}
+ abstract protected function _title();
+ abstract protected function _hours();
+ abstract protected function _render(Horde_Date $day = null);
+
}
return $hours_html;
}
- protected function _render($day = null)
+ protected function _render(Horde_Date $day = null)
{
$this->_start = new Horde_Date($day);
$this->_start->hour = $this->_startHour;
return $hours_html;
}
- protected function _render($day = null)
+ protected function _render(Horde_Date $day = null)
{
$this->_start = new Horde_Date(Date_Calc::beginOfWeek($day->mday, $day->month, $day->year, '%Y%m%d000000'));
$this->_end = new Horde_Date($this->_start);