You are here

function views_gantt_plugin_style_gantt::check_date in Views Gantt 7.2

Same name and namespace in other branches
  1. 7 views_gantt_plugin_style_gantt.inc \views_gantt_plugin_style_gantt::check_date()
1 call to views_gantt_plugin_style_gantt::check_date()
views_gantt_plugin_style_gantt::render in ./views_gantt_plugin_style_gantt.inc
Render the given style.

File

./views_gantt_plugin_style_gantt.inc, line 270
Contains the list style plugin.

Class

views_gantt_plugin_style_gantt
Style plugin to render Gantt charts.

Code

function check_date($task, $parent_id = '') {
  if (isset($task['children'])) {
    foreach ($task['children'] as $child) {
      $this
        ->check_date($child, $task['id']);
    }
  }
  $time = $this
    ->get_time($this->tasks[$task['id']]['est']);
  $project_time = $this
    ->get_time($this->project['est']);
}