changing old PHPGW_API_INC to EGW_API_INC in cli, adding a read function to bodefinitions, Still you cannot view or edit definitions with UI

This commit is contained in:
Klaus Leithoff 2009-09-09 08:07:32 +00:00
parent ae9c0bc918
commit 495c19fb95
2 changed files with 5 additions and 2 deletions

View File

@ -128,7 +128,7 @@
}
$GLOBALS['egw_info']['server']['sessions_type'] = 'db'; // no php4-sessions availible for cgi
include(PHPGW_API_INC.'/functions.inc.php');
include(EGW_API_INC.'/functions.inc.php');
// check file
if (!is_readable($file))

View File

@ -53,7 +53,10 @@ class bodefinitions {
public function get_definitions() {
return $this->definitions;
}
public function read($definition_id) {
$definition = new definition( $definition_id['name'] );
return $definition->get_record_array();
}
/**
* deletes a defintion
*