/** * @see ProjectInterface::get_description() * @return string */ public function get_description() { if ($this->project_id) { $project_item = new ProjectItem($this->project_id); $item_array = $project_item->get_project_items(); if (is_array($item_array) and count($item_array) >= 1) { foreach ($item_array as $item_key => $item_value) { if (DataEntity::is_kind_of("value", $item_value) == true) { $data_entity_id = DataEntity::get_entry_by_item_id($item_value); $value_id = Value::get_value_id_by_data_entity_id($data_entity_id); if (Value::is_entry_type_of($value_id, 2) == true) { $description_id = $value_id; } } } } $value = Value::get_instance($description_id); if ($value->get_type_id() == 2) { return unserialize($value->get_value()); } } else { return null; } }