image_tag($src, $options = array ())
6: function image_tag($src, $options = array ()) {
7: $options['src'] = $src;
8: $options = $this->_set_options($options);
9: $options = $this->_render_options($options);
10: return sprintf($this->tags['img'], $options);
11: }
File: lib/view/HtmlHelper.php, #line 6
callback_html($options, $function)
13: function callback_html($options, $function) {
14: $method = false;
15: if (isset ($options['before'])) {
16: if (is_string($options['before'])) {
17: $method = $options['before'];
18:
19: }
20: elseif ($options['before']) {
21: $method = 'before_' . $function;
22: }
23: if ($method) {
24: return Controller::find_helper_method($method, null);
26: }
27: } else {
28: $method = 'before_' . $function;
29: if (method_exists('ApplicationHelper', $method)) {
30: return Controller::find_helper_method($method, null);
31: }
32: }
33: return true;
34: }
File: lib/view/HtmlHelper.php, #line 13
link_to($name, $options = array (), $display_options = array(‘before’ => ”, ‘after’ => ”))
36: function link_to($name, $options = array (), $display_options = array('before' => '', 'after' => '')) {
37: $options['href'] = '';
38: $display = $this->callback_html($options, __FUNCTION__);
39: $options = $this->_set_options($options);
40: $options = $this->_render_options($options);
41: if ($display) {
42: return $display_options['before'].sprintf($this->tags['link'], $options, $name).$display_options['after'];
43: }
44:
45: }
File: lib/view/HtmlHelper.php, #line 36
link_to_remote($name, $options = array ())
47: function link_to_remote($name, $options = array ()) {
48: $display = $this->callback_html($options, __FUNCTION__);
49: $options = $this->_render_remote($options);
50: $options['href'] = '#';
51: $options = $this->_render_options($options);
52: if ($display) {
53: return sprintf($this->tags['link'], $options, $name);
54: }
55: }
File: lib/view/HtmlHelper.php, #line 47
button_to_remote($name, $options = array ())
57: function button_to_remote($name, $options = array ()) {
58: $display = $this->callback_html($options, __FUNCTION__);
59: $options = $this->_render_remote($options);
60: unset ($options['href']);
61: unset ($options['ajax']);
62: $options = $this->_render_options($options);
63: if ($display) {
64: return sprintf($this->tags['button'], $options, $name);
65: }
66: }
File: lib/view/HtmlHelper.php, #line 57
form_remote_tag($options = array ())
68: function form_remote_tag($options = array ()) {
69: $options['ajax']['form'] = true;
70: $options = $this->_render_remote($options);
71: $options['onsubmit'] = $options['onclick'];
72: unset ($options['onclick']);
73: unset ($options['href']);
74: $options = $this->_render_options($options);
75: return sprintf($this->tags['open_form'], $options);
76: }
File: lib/view/HtmlHelper.php, #line 68
link_to_function($name, $options = array ())
78: function link_to_function($name, $options = array ()) {
79: $display = $this->callback_html($options, __FUNCTION__);
80: $options['func'] = true;
81: $options = $this->_set_options($options);
82: $options = $this->_render_options($options);
83: if ($display) {
84: return sprintf($this->tags['link'], $options, $name);
85: }
86: }
File: lib/view/HtmlHelper.php, #line 78
button_to_function($name, $options = array ())
88: function button_to_function($name, $options = array ()) {
89: $display = $this->callback_html($options, __FUNCTION__);
91: $options = $this->_set_options($options);
92: $options = $this->_render_options($options);
93: if ($display) {
94: return sprintf($this->tags['button'], $options, $name);
95: }
96: }
File: lib/view/HtmlHelper.php, #line 88
mail_to($name, $options = array ())
98: function mail_to($name, $options = array ()) {
99: $display = $this->callback_html($options, __FUNCTION__);
100: $options = $this->_set_options($options);
101: $options = $this->_render_options($options);
102: if ($display) {
103: return sprintf($this->tags['link'], $options, $name);
104: }
105: }
File: lib/view/HtmlHelper.php, #line 98
form_tag($options = array ())
107: function form_tag($options = array ()) {
108: $options['action'] = '';
109: $options = $this->_set_options($options);
110: $options = $this->_render_options($options);
111: return sprintf($this->tags['open_form'], $options);
112: }
File: lib/view/HtmlHelper.php, #line 107
end_form_tag()
114: function end_form_tag() {
115: return $this->tags['close_form'];
116: }
File: lib/view/HtmlHelper.php, #line 114
submit_tag($value, $options = array ())
118: function submit_tag($value, $options = array ()) {
119: $display = $this->callback_html($options, __FUNCTION__);
120: $options['type'] = 'submit';
121: $options['value'] = $value;
122: if ($display) {
123: return $this->input($options);
124: }
125: }
File: lib/view/HtmlHelper.php, #line 118
submit_image_tag($value, $options = array ())
127: function submit_image_tag($value, $options = array ()) {
128: $display = $this->callback_html($options, __FUNCTION__);
129: $options['type'] = 'image';
130: $options['src'] = DIR_IMAGES . '/' . $value;
131: if ($display) {
132: return $this->input($options);
133: }
134: }
File: lib/view/HtmlHelper.php, #line 127
text_field($field_name, $options = array ())
136: function text_field($field_name, $options = array ()) {
137: $display = $this->callback_html($options, __FUNCTION__);
138: $options['type'] = 'text';
139: $options['name'] = $field_name;
140: if ($display) {
141: return $this->input($options);
142: }
143: }
File: lib/view/HtmlHelper.php, #line 136
text_area($field_name, $options = array ())
145: function text_area($field_name, $options = array ()) {
146: $display = $this->callback_html($options, __FUNCTION__);
147: $options['name'] = $field_name;
148: $field_value = '';
149: $options['type'] = 'textarea';
150: $options = $this->_set_options($options);
151: $field_value = isset ($options['value']) ? $options['value'] : '';
152: $options = $this->_render_options($options);
153: if ($display) {
154: return sprintf($this->tags['textarea'], $options, $field_value);
155: }
156: }
File: lib/view/HtmlHelper.php, #line 145
file_field($field_name, $options = array ())
158: function file_field($field_name, $options = array ()) {
159: $display = $this->callback_html($options, __FUNCTION__);
160: $options['type'] = 'file';
161: $options['name'] = $field_name;
162: if ($display) {
163: return $this->input($options);
164: }
165: }
File: lib/view/HtmlHelper.php, #line 158
hidden_field($field_name, $options = array ())
167: function hidden_field($field_name, $options = array ()) {
168: $display = $this->callback_html($options, __FUNCTION__);
169: $options['type'] = 'hidden';
170: $options['name'] = $field_name;
171: if ($display) {
172: return $this->input($options);
173: }
174: }
File: lib/view/HtmlHelper.php, #line 167
password_field($field_name, $options = array ())
176: function password_field($field_name, $options = array ()) {
177: $display = $this->callback_html($options, __FUNCTION__);
178: $options['type'] = 'password';
179: $options['name'] = $field_name;
180: if ($display) {
181: return $this->input($options);
182: }
183: }
File: lib/view/HtmlHelper.php, #line 176
radio($field_name, $options = array ())
185: function radio($field_name, $options = array ()) {
186: $display = $this->callback_html($options, __FUNCTION__);
187: $options['type'] = 'radio';
188: $options['name'] = $field_name;
189: if ($display) {
190: return $this->input($options);
191: }
192: }
File: lib/view/HtmlHelper.php, #line 185
check_box($field_name, $options = array ())
194: function check_box($field_name, $options = array ()) {
195: $display = $this->callback_html($options, __FUNCTION__);
196: $options['type'] = 'checkbox';
197: $options['value'] = '1';
198: $options['name'] = $field_name;
199: if ($display) {
200: return $this->hidden_field($field_name, array_merge($options, array (
201: 'value' => 0,
202: 'id' => 'none'
203: ))) . $this->input($options);
204: }
205: }
File: lib/view/HtmlHelper.php, #line 194
button_to($field_name, $options = array ())
207: function button_to($field_name, $options = array ()) {
208: $display = $this->callback_html($options, __FUNCTION__);
209: $options['button'] = true;
210: $options = $this->_set_options($options);
211: $options = $this->_render_options($options);
212: if ($display) {
213: return sprintf($this->tags['button'], $options, $field_name);
214: }
215: }
File: lib/view/HtmlHelper.php, #line 207
country_select($field_name, $priority_countries = null, $options = array (), $html_options = array ())
217: function country_select($field_name, $priority_countries = null, $options = array (), $html_options = array ()) {
218: $display = $this->callback_html($options, __FUNCTION__);
219: $html_options = $this->_render_options($html_options);
220: if (!isset ($options['select'])) {
221: $options['select'] = null;
222: }
223: $options_for_select = $this->options_for_select($this->option_vars['countries'], $options['select']);
224: if ($display) {
225: return sprintf($this->tags['select'], $field_name, $html_options, $options_for_select);
226: }
227: }
File: lib/view/HtmlHelper.php, #line 217
select($field_name, $collection, $value, $text, $options = array (), $html_options = array ())
232: function select($field_name, $collection, $value, $text, $options = array (), $html_options = array ()) {
233:
234: $display = $this->callback_html($options, __FUNCTION__);
235: if ($display) {
236: return $this->collection_select($field_name, $collection, $value, $text, $options, $html_options);
237: }
238: }
File: lib/view/HtmlHelper.php, #line 232
collection_select($field_name, $collection, $value, $text, $options = array (), $html_options = array ())
240: function collection_select($field_name, $collection, $value, $text, $options = array (), $html_options = array ()) {
241: $select = null;
242: $html_options = $this->_render_options($html_options);
243: $collection = $this->object_to_array($collection, $value, $text);
244: $field = $this->field_name_split($field_name);
245: if (isset($options['selected'])) {
246: $select = $options['selected'];
247: } else {
248: $select = $this->grep_field_value($field_name);
249: }
250: $options_for_select = '';
251: if (isset ($options['prompt'])) {
252: $options_for_select .= sprintf($this->tags['option'], '', '', $options['prompt']);
253: }
254: $options_for_select .= $this->options_for_select($collection, $select);
255: return sprintf($this->tags['select'], $field_name, $html_options, $options_for_select);
256: }
File: lib/view/HtmlHelper.php, #line 240
options_for_select($collection, $selected = null)
258: function options_for_select($collection, $selected = null) {
259: $option = '';
260: foreach ($collection as $key => $text) {
261: $select = '';
262: if ($selected) {
263: if ($selected == $key) {
264: $select = 'selected="selected"';
265: }
266: }
267: $option .= sprintf($this->tags['option'], $key, $select, $text);
268: }
269: return $option;
270: }
File: lib/view/HtmlHelper.php, #line 258
date_select($field_name, $options = array (), $html_options = array ())
272: function date_select($field_name, $options = array (), $html_options = array ()) {
273: }
File: lib/view/HtmlHelper.php, #line 272
datetime_select()
275: function datetime_select() {
276: }
File: lib/view/HtmlHelper.php, #line 275
distance_of_time_in_words_to_now()
278: function distance_of_time_in_words_to_now() {
279: }
File: lib/view/HtmlHelper.php, #line 278
select_date($field_name, $options = array (), $html_options = array ())
281: function select_date($field_name, $options = array (), $html_options = array ()) {
282: }
File: lib/view/HtmlHelper.php, #line 281
select_datetime($field_name, $options = array (), $html_options = array ())
287: function select_datetime($field_name, $options = array (), $html_options = array ()) {
288: if (isset ($options['order'])) {
289: $select_options = '';
290: foreach ($options['order'] as $order) {
291: $method = 'select_' . $order;
292: $select_options .= $this-> $method ($field_name, $options, $html_options);
293: }
294: }
295: return $select_options;
296: }
File: lib/view/HtmlHelper.php, #line 287
select_time()
298: function select_time() {
299: }
File: lib/view/HtmlHelper.php, #line 298
time_select()
301: function time_select() {
302: }
File: lib/view/HtmlHelper.php, #line 301
isLeapYear($year)
304: function isLeapYear($year) {
305: if ((($year / 4 == 0) and ($year / 100 != 0)) or ($year / 400 == 0)) {
306: return true;
307: } else {
308: return false;
309: }
310: }
File: lib/view/HtmlHelper.php, #line 304
leapYear($year)
312: function leapYear($year) {
313: if ((($year / 4 == 0) and ($year / 100 != 0)) or ($year / 400 == 0)) {
314: return $year * 366;
315: } else {
316: return $year * 365;
317: }
318: }
File: lib/view/HtmlHelper.php, #line 312
select_hour($field_name, $options = array (), $html_options = array ())
320: function select_hour($field_name, $options = array (), $html_options = array ()) {
321: $this->get_selected_value($field_name, & $options, 'hours', 'H');
322: for ($i = 0; $i <= 23; $i++) {
323: if ($i < 10) {
324: $i = '0' . $i;
325: }
326: $collection_arr[$i] = $i;
327: }
328: $options_for_select = $this->options_for_select($collection_arr, $options['selected'] / 1);
329: $html_options = $this->_render_options($html_options);
330: return sprintf($this->tags['select'], "{$field_name}[hours]", $html_options, $options_for_select);
331: }
File: lib/view/HtmlHelper.php, #line 320
select_minute($field_name, $options = array (), $html_options = array ())
333: function select_minute($field_name, $options = array (), $html_options = array ()) {
334: $this->get_selected_value($field_name, & $options, 'minutes', 'i');
335: for ($i = 0; $i <= 59; $i++) {
336: if ($i < 10) {
337: $i = '0' . $i;
338: }
339: $collection_arr[$i] = $i;
340: }
341: $options_for_select = $this->options_for_select($collection_arr, $options['selected'] / 1);
342: $html_options = $this->_render_options($html_options);
343: return sprintf($this->tags['select'], "{$field_name}[minutes]", $html_options, $options_for_select);
344: }
File: lib/view/HtmlHelper.php, #line 333
select_second($field_name, $options = array (), $html_options = array ())
346: function select_second($field_name, $options = array (), $html_options = array ()) {
347: $this->get_selected_value($field_name, & $options, 'seconds', 's');
348: for ($i = 0; $i <= 59; $i++) {
349: if ($i < 10) {
350: $i = '0' . $i;
351: }
352: $collection_arr[$i] = $i;
353: }
354: $options_for_select = $this->options_for_select($collection_arr, $options['selected'] / 1);
355: $html_options = $this->_render_options($html_options);
356: return sprintf($this->tags['select'], "{$field_name}[seconds]", $html_options, $options_for_select);
357: }
File: lib/view/HtmlHelper.php, #line 346
select_month($field_name, $options = array (), $html_options = array ())
359: function select_month($field_name, $options = array (), $html_options = array ()) {
360: $this->get_selected_value($field_name, & $options, 'mon', 'm');
361: for ($i = 1; $i <= 12; $i++) {
362: $month = $i;
363: if (isset ($options['include_month_words'])) {
364: $month = $this->option_vars['months'][$i];
365: }
366: $collection_arr[$i] = $month;
367: }
368: $options_for_select = $this->options_for_select($collection_arr, $options['selected'] / 1);
369: $html_options = $this->_render_options($html_options);
370: return sprintf($this->tags['select'], "{$field_name}[month]", $html_options, $options_for_select);
371: }
File: lib/view/HtmlHelper.php, #line 359
select_day($field_name, $options = array (), $html_options = array ())
373: function select_day($field_name, $options = array (), $html_options = array ()) {
374: $this->get_selected_value($field_name, & $options, 'mday', 'd');
375: for ($i = 1; $i <= 31; $i++) {
376: $collection_arr[$i] = $i;
377: }
378: $options_for_select = $this->options_for_select($collection_arr, $options['selected'] / 1);
379: $html_options = $this->_render_options($html_options);
380: return sprintf($this->tags['select'], "{$field_name}[day]", $html_options, $options_for_select);
381: }
File: lib/view/HtmlHelper.php, #line 373
select_year($field_name, $options = array (), $html_options = array ())
383: function select_year($field_name, $options = array (), $html_options = array ()) {
384: $this->get_selected_value($field_name, & $options, 'year', 'Y');
385:
386: $start_year = date('Y') - 5;
387: $end_year = date('Y') + 5;
388:
389: if ($options['selected'] < $start_year) {
390: $start_year = $options['selected'] - 5;
391: }
392:
393: for ($i = $start_year; $i <= $end_year; $i++) {
394: $collection_arr[$i] = $i;
395: }
396:
397: $options_for_select = $this->options_for_select($collection_arr, $options['selected']);
398: $html_options = $this->_render_options($html_options);
399: return sprintf($this->tags['select'], "{$field_name}[year]", $html_options, $options_for_select);
400: }
File: lib/view/HtmlHelper.php, #line 383
time_ago_in_words($from_time, $include_seconds = false)
402: function time_ago_in_words($from_time, $include_seconds = false) {
403: return $this->distance_of_time_in_words($from_time, time(), $include_seconds);
404: }
File: lib/view/HtmlHelper.php, #line 402
distance_of_time_in_words($from_time, $to_time = 0, $include_seconds = false)
409: function distance_of_time_in_words($from_time, $to_time = 0, $include_seconds = false) {
411: $distance_in_minutes = ($to_time - $from_time) / 60;
412: $distance_in_seconds = $to_time - $from_time;
413:
414: if ($distance_in_minutes >= 0 && $distance_in_minutes <= 1) {
415: if ($include_seconds) {
416: if ($distance_in_seconds >= 0 && $distance_in_seconds <= 4) {
417: return 'less than 5 seconds';
418: }
419: elseif ($distance_in_seconds >= 5 && $distance_in_seconds <= 9) {
420: return 'less than 10 seconds';
421: }
422: elseif ($distance_in_seconds >= 10 && $distance_in_seconds <= 19) {
423: return 'less than 20 seconds';
424: }
425: elseif ($distance_in_seconds >= 20 && $distance_in_seconds <= 39) {
426: return 'half a minute';
427: }
428: elseif ($distance_in_seconds >= 40 && $distance_in_seconds <= 59) {
429: return 'less than a minute';
430: } else {
431: return '1 minute';
432: }
433:
434: } else {
435: return 'less than a minute';
436: }
437:
438: }
439: elseif ($distance_in_minutes >= 2 && $distance_in_minutes <= 44) {
440: return "$distance_in_minutes minutes";
441: }
442: elseif ($distance_in_minutes >= 45 && $distance_in_minutes <= 89) {
443: return 'about 1 hour';
444: }
445: elseif ($distance_in_minutes >= 90 && $distance_in_minutes <= 1439) {
446: return "about " . round($distance_in_minutes / 60) . " hours";
447: }
448: elseif ($distance_in_minutes >= 1440 && $distance_in_minutes <= 2879) {
449: return '1 day';
450: }
451: elseif ($distance_in_minutes >= 2880 && $distance_in_minutes <= 43199) {
452: return round($distance_in_minutes / 1440) . " days";
453: }
454: elseif ($distance_in_minutes >= 43200 && $distance_in_minutes <= 86399) {
455: return 'about 1 month';
456: }
457: elseif ($distance_in_minutes >= 86400 && $distance_in_minutes <= 525599) {
458: return round($distance_in_minutes / 43200) . " months";
459: }
460: elseif ($distance_in_minutes >= 25600 && $distance_in_minutes <= 1051199) {
461: return 'about 1 year';
462: } else {
463: return "over " . round($distance_in_minutes / 525600) . " years";
464: }
465: }
File: lib/view/HtmlHelper.php, #line 409
day($days)
467: function day($days) {
468: return $this->days($days);
469: }
File: lib/view/HtmlHelper.php, #line 467
days($days)
471: function days($days) {
472: return $days * 24 * 60 * 60;
473: }
File: lib/view/HtmlHelper.php, #line 471
fortnight($seconds)
475: function fortnight($seconds) {
476: return $this->fortnights($seconds);
477: }
File: lib/view/HtmlHelper.php, #line 475
fortnights($seconds)
479: function fortnights($seconds) {
480: return $seconds * $this->weeks(2);
481: }
File: lib/view/HtmlHelper.php, #line 479
from_now($seconds)
483: function from_now($seconds) {
484: return $this->since($seconds);
485: }
File: lib/view/HtmlHelper.php, #line 483
hour($hours)
487: function hour($hours) {
488: return $this->hours($hours);
489: }
File: lib/view/HtmlHelper.php, #line 487
hours($hours)
491: function hours($hours) {
492: return $hours * 60 * 60;
493: }
File: lib/view/HtmlHelper.php, #line 491
minute($minutes)
495: function minute($minutes) {
496: return $this->minutes($minutes);
497: }
File: lib/view/HtmlHelper.php, #line 495
minutes($minutes)
499: function minutes($minutes) {
500: return $minutes * 60;
501: }
File: lib/view/HtmlHelper.php, #line 499
month($months)
503: function month($months) {
504: return $this->months($months);
505: }
File: lib/view/HtmlHelper.php, #line 503
months($months)
507: function months($months) {
508: return $months * 30 * 24 * 60 * 60;
509: }
File: lib/view/HtmlHelper.php, #line 507
second($seconds)
511: function second($seconds) {
512: return $this->seconds($seconds);
513: }
File: lib/view/HtmlHelper.php, #line 511
seconds($seconds)
515: function seconds($seconds) {
516: return $seconds;
517: }
File: lib/view/HtmlHelper.php, #line 515
since($seconds)
519: function since($seconds) {
520: return Time() + $seconds;
521: }
File: lib/view/HtmlHelper.php, #line 519
until($seconds)
523: function until($seconds) {
524: return $this->ago($seconds);
525: }
File: lib/view/HtmlHelper.php, #line 523
week($weeks)
527: function week($weeks) {
528: return $this->weeks($weeks);
529: }
File: lib/view/HtmlHelper.php, #line 527
weeks($weeks)
531: function weeks($weeks) {
532: return $weeks * 7 * 24 * 60 * 60;
533: }
File: lib/view/HtmlHelper.php, #line 531
year($years)
535: function year($years) {
536: return $this->years($years);
537: }
File: lib/view/HtmlHelper.php, #line 535
years($years)
539: function years($years) {
540: return $years * 365.25* 24 * 60 * 60;
541: }
File: lib/view/HtmlHelper.php, #line 539
advance()
543: function advance() {
544: }
File: lib/view/HtmlHelper.php, #line 543
ago($seconds)
546: function ago($seconds) {
547: return Time() - $seconds;
548: }
File: lib/view/HtmlHelper.php, #line 546
at_beginning_of_day()
550: function at_beginning_of_day() {
551: }
File: lib/view/HtmlHelper.php, #line 550
at_beginning_of_month()
552: function at_beginning_of_month() {
553: }
File: lib/view/HtmlHelper.php, #line 552
at_beginning_of_quarter()
554: function at_beginning_of_quarter() {
555: }
File: lib/view/HtmlHelper.php, #line 554
at_beginning_of_week()
556: function at_beginning_of_week() {
557: }
File: lib/view/HtmlHelper.php, #line 556
at_beginning_of_year()
558: function at_beginning_of_year() {
559: }
File: lib/view/HtmlHelper.php, #line 558
at_end_of_month()
560: function at_end_of_month() {
561: }
File: lib/view/HtmlHelper.php, #line 560
at_midnight()
562: function at_midnight() {
563: }
File: lib/view/HtmlHelper.php, #line 562
beginning_of_day()
564: function beginning_of_day() {
565: }
File: lib/view/HtmlHelper.php, #line 564
beginning_of_month()
566: function beginning_of_month() {
567: }
File: lib/view/HtmlHelper.php, #line 566
beginning_of_quarter()
568: function beginning_of_quarter() {
569: }
File: lib/view/HtmlHelper.php, #line 568
beginning_of_week()
570: function beginning_of_week() {
571: }
File: lib/view/HtmlHelper.php, #line 570
beginning_of_year()
572: function beginning_of_year() {
573: }
File: lib/view/HtmlHelper.php, #line 572
change()
574: function change() {
575: }
File: lib/view/HtmlHelper.php, #line 574
end_of_day()
576: function end_of_day() {
577: }
File: lib/view/HtmlHelper.php, #line 576
end_of_month()
578: function end_of_month() {
579: }
File: lib/view/HtmlHelper.php, #line 578
in()
580: function in() {
581: }
File: lib/view/HtmlHelper.php, #line 580
last_month()
582: function last_month() {
583: }
File: lib/view/HtmlHelper.php, #line 582
last_year()
584: function last_year() {
585: }
File: lib/view/HtmlHelper.php, #line 584
midnight()
586: function midnight() {
587: }
File: lib/view/HtmlHelper.php, #line 586
monday()
588: function monday() {
589: }
File: lib/view/HtmlHelper.php, #line 588
months_ago()
590: function months_ago() {
591: }
File: lib/view/HtmlHelper.php, #line 590
months_since()
592: function months_since() {
593: }
File: lib/view/HtmlHelper.php, #line 592
next_month()
594: function next_month() {
595: }
File: lib/view/HtmlHelper.php, #line 594
next_week()
596: function next_week() {
597: }
File: lib/view/HtmlHelper.php, #line 596
next_year()
598: function next_year() {
599: }
File: lib/view/HtmlHelper.php, #line 598
seconds_since_midnight()
600: function seconds_since_midnight() {
601: }
File: lib/view/HtmlHelper.php, #line 600
tomorrow()
602: function tomorrow() {
603: }
File: lib/view/HtmlHelper.php, #line 602
years_ago()
604: function years_ago() {
605: }
File: lib/view/HtmlHelper.php, #line 604
years_since()
606: function years_since() {
607: }
File: lib/view/HtmlHelper.php, #line 606
yesterday()
608: function yesterday() {
609: }
File: lib/view/HtmlHelper.php, #line 608
javascript_tag($file_name)
611: function javascript_tag($file_name) {
612: if (file_exists('javascripts/' . $file_name . '.js')) {
613: return "";
614: }
615:
616: }
File: lib/view/HtmlHelper.php, #line 611
stylesheet_tag($file_name, $options = array ())
618: function stylesheet_tag($file_name, $options = array ()) {
619: if (file_exists("stylesheets/$file_name.css")) {
620:
621: if (!isset ($options['media'])) {
622: $options['media'] = 'screen';
623: }
624: $elements = $this->_render_options($options);
625: return "
";
626: }
627: }
File: lib/view/HtmlHelper.php, #line 618
grep_field_value($fieldName)
672: function grep_field_value($fieldName) {
673: $field = $this->field_name_split($fieldName);
674: $value = false;
675: if (isset ($this-> $field['object'])) {
676: if (is_object($this-> $field['object'])) {
677: if (isset ($this-> $field['object']-> $field['method'])) {
678: $value = $this-> $field['object']-> $field['method'];
679: }
680: }
681: }
682: return $value;
683: }
File: lib/view/HtmlHelper.php, #line 672
