/** * Checks if an Item needs class-information * @param $no_class_exist_check If this is true, method will not check the existence of the class * @return bool */ private function is_class_information($no_class_exist_check) { if ($this->project and $this->status_id and is_numeric($this->gid)) { $project_template = new ProjectTemplate($this->project->get_template_id()); $attribute_array = $project_template->get_gid_attributes($this->gid, $this->status_id); if (is_array($attribute_array) and count($attribute_array) >= 1) { if ($attribute_array['class']) { $class_name = $attribute_array['class']; if ($this->exist_class($class_name) and ($no_class_exist_check == false or $no_class_exist_check == null)) { return false; } else { $class_array = $project_template->get_status_class($this->status_id, $class_name); if (is_array($class_array) and count($class_array) >= 1) { foreach ($class_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; } } } else { return false; } } else { return false; } } else { return false; } }