Commit 6decd2c1 authored by speedprogs_de's avatar speedprogs_de

added author to extension providers and task

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@51653 735d13b6-9817-0410-8766-e36946ffe9aa
parent daf7c8c9
......@@ -208,18 +208,22 @@
'cgl_compliance' => $extension['CGLcompliance'],
'cgl_compliance_note' => $extension['CGLcompliance_note'],
'download_counter' => (int) $extension['downloadcounter'],
'manual' => NULL, // TODO: Implement
'name' => $extension['authorname'],
'email' => $extension['authoremail'],
'company' => $extension['authorcompany'],
'username' => $extension['ownerusername'],
'manual' => NULL,
'repository' => $extension['repository'],
'review_state' => $extension['reviewstate'],
'file_hash' => $extension['t3xfilemd5'],
'relations' => array(),
);
// Dependencies
// Author
$extensions[$extension['extkey']]['versions'][$versionString]['author'] = array(
'name' => $extension['authorname'],
'email' => $extension['authoremail'],
'company' => $extension['authorcompany'],
'username' => $extension['ownerusername'],
);
// Relations
$dependencies = unserialize($extension['dependencies']);
foreach ($dependencies as $relationType => $relations) {
foreach ($relations as $relationKey => $versionRange) {
......
......@@ -211,18 +211,22 @@
'cgl_compliance' => NULL,
'cgl_compliance_note' => NULL,
'download_counter' => (int) $version->downloadcounter,
'manual' => NULL, // TODO: Implement
'name' => (string) $version->authorname,
'email' => (string) $version->authoremail,
'company' => (string) $version->authorcompany,
'username' => (string) $version->ownerusername,
'manual' => NULL,
'repository' => NULL,
'review_state' => NULL,
'file_hash' => (string) $version->t3xfilemd5,
'relations' => array(),
);
// Dependencies
// Author
$versions[$versionString]['author'] = array(
'name' => (string) $version->authorname,
'email' => (string) $version->authoremail,
'company' => (string) $version->authorcompany,
'username' => (string) $version->ownerusername,
);
// Relations
$dependencies = unserialize((string) $version->dependencies);
foreach ($dependencies as $dependency) {
if (empty($dependency['extensionKey'])) {
......
......@@ -211,8 +211,10 @@
$modified = TRUE;
// Online documentation
$documentationUrl = $this->documentationService->getDocumentationUrl($extensionRow['ext_key'], $versionRow['version_string']);
$version->setManual($documentationUrl);
if (!$version->getManual()) {
$documentationUrl = $this->documentationService->getDocumentationUrl($extensionRow['ext_key'], $versionRow['version_string']);
$version->setManual($documentationUrl);
}
// Relations
foreach ($versionRow['relations'] as $relationRow) {
......@@ -221,8 +223,8 @@
}
// Author
if (!empty($versionRow['authors'])) {
$authorRow = reset($versionRow['authors']);
if (!empty($versionRow['author'])) {
$authorRow = $versionRow['author'];
if ($this->authorRepository->countByEmail($authorRow['email'])) {
$author = $this->authorRepository->findOneByEmail($authorRow['email']);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment