/** @todo document */
class erErrorReportView {
- /** (erConfig) pointer to the configuration class */
- protected $objcfg;
/** (erErrorReportManager) pointer to a erErrorReportManager instance */
protected $objManager;
/**
/**
* Constructor
- * @param $objcfg (erConfig) Pointer to an instance of the erConfig class for
- * retrieving the configuration data
* @param $objemm (erErrorReportManager) Pointer to a instance of the
* erErrorReportManager class for retrieving the document data
* @return erErrorReportView
*/
- public function __construct(erConfig &$objcfg, erErrorReportManager &$objemm) {
- $this->objcfg = $objcfg;
+ public function __construct(erErrorReportManager &$objemm) {
$this->objManager = $objemm;
html_header("<style type='text/css'>
table.errors-view-table { width:100%; border:2px solid #5276AB; }
$sColor = sprintf("rgb(%d,%d,%d)", ($nColor >> 16) % 256,
($nColor >> 8) % 256, $nColor % 256);
echo "<tr style='background-color:$sColor'>";
- if($this->objcfg->userIsAdmin() or
+ if(erConfig::userIsAdmin() or
$this->objManager->userIsOwner($objem->getUid())) {
// user is admin or owner
echo "<td style='padding:3px'><{$GLOBALS["invtbl"]} width='100%'>\n";