Lines Matching refs:data
60 $data = array();
66 $data['month'] = date('m');
67 $data['year'] = date('Y');
68 $data['namespace'] = $INFO['namespace'];
69 $data['create_links'] = 1;
70 $data['week_start_on'] = 0;
71 $data['display_weeks'] = 0;
72 $data['do_not_create_past_links'] = 0;
73 $data['borders'] = 0;
74 $data['mark_today'] = 1;
75 $data['align'] = 0;
76 $data['create_prev_next_links'] = 0;
84 $data['year'] = $value;
87 $data['month'] = $value;
90 $data['namespace'] = (strpos($value, ':') === false) ? ':' . $value : $value;
95 $data['create_links'] = 0;
98 $data['create_links'] = 2;
101 $data['create_links'] = 1;
107 $data['week_start_on'] = 1;
109 $data['week_start_on'] = 0;
114 $data['display_weeks'] = 0;
117 $data['display_weeks'] = 1;
124 $data['do_not_create_past_links'] = 0;
127 $data['do_not_create_past_links'] = 1;
134 $data['create_prev_next_links'] = 0;
137 $data['create_prev_next_links'] = 1;
144 $data['borders'] = 1;
147 $data['borders'] = 2;
150 $data['borders'] = 0;
157 $data['mark_today'] = 0;
160 $data['mark_today'] = 1;
167 $data['align'] = 1;
170 $data['align'] = 2;
173 $data['align'] = 0;
179 return $data;
186 function render($mode, Doku_Renderer $renderer, $data) { argument
188 $renderer->doc .= $this->create_calendar($data);
198 function create_calendar($data) { argument
207 $date_from = new DateTime($data['year'] . "-" . $data['month'] . "-01");
228 if ($data['week_start_on'] == 1) {
236 switch($data['align']) {
249 switch($data['borders']) {
269 if ($data['display_weeks'] == '1') {
278 if ($data['create_prev_next_links']){
279 …$html .= html_wikilink($data['namespace'] . ':' . $date_prev_month->format('Y') . ':' . $date_prev…
280 …$html .= html_wikilink($data['namespace'] . ':' . $date_next_month->format('Y') . ':' . $date_next…
286 …if ($data['week_start_on'] == 1) { $weekdays=array($weekdays[6],$weekdays[0],$weekdays[1],$weekday…
289 if ($data['display_weeks'] == '1') {
302 if ($data['display_weeks'] == '1') {
320 if ($data['display_weeks'] == '1') {
325 if ($date->format('Ymd') == $date_today->format('Ymd') and $data['mark_today'] == 1)
330 if ($data['create_links'] == '1' ) {
331 …$id = $data['namespace'] . ':' . $date->format('Y') . ':' . $date->format('m') . ':' . $date->form…
332 …if (($data['do_not_create_past_links'] == '1') and ($date->format('Ymd') < $date_today->format('Y…
334 …resolve_pageid($data['namespace'] . ':' . $date->format('Y') . ':' . $date->format('m'), $date->fo…
343 } else if ($data['create_links'] == '2' ) {