/** * Checks if an Item needs item-information * @return bool */ private function is_item_information() { if ($this->project and $this->status_id and is_numeric($this->gid)) { $project_template = new ProjectTemplate($this->project->get_template_id()); $status_item_array = $project_template->get_status_item($this->gid, $this->status_id); if (is_array($status_item_array) and count($status_item_array) >= 1) { foreach ($status_item_array as $key => $value) { if ($value['xml_element'] == "information") { $return_array = array(); if ($value['keywords'] == "keywords") { $return_array['keywords'] = true; } if ($value['description'] == "description") { $return_array['description'] = true; } if ($return_array['keywords'] or $return_array['description']) { return $return_array; } else { return false; } } } } } else { return false; } }