private function createView() { //Display keys $this->oView->addData('titre', Language::translate('API_ADMIN_TABLE_TITLE')); $oTable = new TableGenerator(); $oTable->setId(md5('API')); $oTable->addColumn(Language::translate('API_ADMIN_TABLE_KEY')); $oTable->addColumn(Language::translate('API_ADMIN_TABLE_TYPE')); $oTable->addColumn(''); $aKeys = ApiKey::getAllKeys(); foreach ($aKeys as $oApiKey) { $oTable->addLine(array($oApiKey->getUserLogin(), $oApiKey->getKey(), $this->createAccessLabel($oApiKey), $this->createEditPopup($oApiKey))); } $oTable->setBottom($this->createAddPopup()); $oTable->create(); $this->oView->addData('content', $oTable->getCode()); $this->oView->Create(); }