Added base classes for hour and expense reportsĀ§
[ajatus.git] / plugins / ajatus / types / hourreport.php
blob5df625816d7e534bf562f1af5331965d1006c860
1 <?php
2 /**
3 * This file is part of
4 * Ajatus - Distributed CRM
5 *
6 * Copyright (c) 2008 Jerry Jalava <jerry.jalava@gmail.com>
7 * Copyright (c) 2008 Nemein Oy <http://nemein.com>
8 * Website: http://ajatus.info
9 * Licensed under the GPL license
10 * http://www.gnu.org/licenses/gpl.html
14 class ajatus_types_hourreport extends ajatus_type
16 public function __construct(&$connection, &$configuration)
18 $this->type_name = 'hour_report';
19 parent::__construct(&$connection, &$configuration);
21 $this->design_name = 'hour_report';
23 $this->map_values = array
25 'title' => 'doc.value.title',
26 'hours' => 'doc.value.hours',
27 'date' => 'doc.value.date',
28 'tags' => 'doc.value.tags',
29 'creator' => 'doc.value.metadata.creator',
30 'created' => 'doc.value.metadata.created'