* @package WB */ // WBClass::load(); /** * Populate form element's values with entity list * * Datasource Calendar Decorator * * @version 0.3.0 * @package WB */ abstract class WBDatasource_Calendar_Decorator extends WBStdClass { /** * Decorator Config * @var array */ protected $config = array(); /** * Configure Decorator * * @param array */ public function configure($params = array()) { $this->config = array_merge($this->config, $params); $this->init(); } /** * 2nd Constructor */ protected function init() { } /** * Decorate Day * * @param DateTime * @param array data of complete week * @param int week day 1 to 7 */ abstract public function decorateDay($date, &$week, $dow); /** * Decorate Day * * @param DateTime * @param array data of complete week */ abstract public function decorateWeek($date, &$week); }