<?php
global $lang;

$config->perfproject->dtable = new stdClass();
$config->perfproject->dtable->fieldList['id']['type']     = 'id';
$config->perfproject->dtable->fieldList['id']['sortType'] = true;
$config->perfproject->dtable->fieldList['id']['required'] = true;

$config->perfproject->dtable->fieldList['name']['title']    = $lang->perfproject->name;
$config->perfproject->dtable->fieldList['name']['sortType'] = true;
$config->perfproject->dtable->fieldList['name']['required'] = true;
$config->perfproject->dtable->fieldList['name']['width']    = 300;
$config->perfproject->dtable->fieldList['name']['link']     = array('module' => 'perfproject', 'method' => 'firstanalysis', 'params' => 'projectID={id}');

$config->perfproject->dtable->fieldList['acl']['title']    = $lang->perfproject->acl;
$config->perfproject->dtable->fieldList['acl']['sortType'] = true;
$config->perfproject->dtable->fieldList['acl']['map']      = $lang->perfproject->aclList;
$config->perfproject->dtable->fieldList['acl']['align']    = 'left';

$config->perfproject->dtable->fieldList['createdBy']['title']    = $lang->perfproject->createdBy;
$config->perfproject->dtable->fieldList['createdBy']['type']     = 'user';
$config->perfproject->dtable->fieldList['createdBy']['sortType'] = true;
$config->perfproject->dtable->fieldList['createdBy']['align']    = 'left';

$config->perfproject->dtable->fieldList['createdDate']['title']      = $lang->perfproject->createdDate;
$config->perfproject->dtable->fieldList['createdDate']['type']       = 'datetime';
$config->perfproject->dtable->fieldList['createdDate']['formatDate'] = 'YYYY-MM-dd hh:mm:ss';
$config->perfproject->dtable->fieldList['createdDate']['sortType']   = true;
$config->perfproject->dtable->fieldList['createdDate']['align']      = 'left';

$config->perfproject->dtable->fieldList['desc']['title'] = $lang->perfproject->desc;
$config->perfproject->dtable->fieldList['desc']['width'] = 300;

$config->perfproject->dtable->fieldList['actions']['type'] = 'actions';
$config->perfproject->dtable->fieldList['actions']['list'] = $config->perfproject->actionList;
$config->perfproject->dtable->fieldList['actions']['menu'] = array('edit', 'managepriv', 'delete');
