function views_gantt_plugin_style_gantt::project_date in Views Gantt 7
Same name and namespace in other branches
- 7.2 views_gantt_plugin_style_gantt.inc \views_gantt_plugin_style_gantt::project_date()
1 call to views_gantt_plugin_style_gantt::project_date()
File
- ./
views_gantt_plugin_style_gantt.inc, line 531 - Contains the list style plugin.
Class
- views_gantt_plugin_style_gantt
- Style plugin to render Gantt charts.
Code
function project_date() {
$date = time();
if ($this->view->result) {
foreach ($this->view->result as $value) {
$task_date = $this
->views_gantt_get_field_value($value, 'date_field');
$task_date = strtotime(str_replace(',', '-', $task_date));
if ($task_date && $task_date < $date) {
$date = $task_date;
}
}
return date('Y,m,d', $date);
}
return NULL;
}