diff --git a/Models/Project.php b/Models/Project.php
index da359ba..7473518 100755
--- a/Models/Project.php
+++ b/Models/Project.php
@@ -78,7 +78,7 @@ class Project
* @var string
* @since 1.0.0
*/
- private string $description = '';
+ public string $description = '';
/**
* Project raw description.
@@ -86,7 +86,7 @@ class Project
* @var string
* @since 1.0.0
*/
- private string $descriptionRaw = '';
+ public string $descriptionRaw = '';
/**
* Calendar.
@@ -158,7 +158,7 @@ class Project
* @var \DateTimeImmutable
* @since 1.0.0
*/
- private \DateTimeImmutable $createdAt;
+ public \DateTimeImmutable $createdAt;
/**
* Created by.
@@ -166,7 +166,7 @@ class Project
* @var Account
* @since 1.0.0
*/
- private Account $createdBy;
+ public Account $createdBy;
/**
* Tasks.
@@ -533,59 +533,7 @@ class Project
public function setName(string $name) : void
{
$this->name = $name;
- $this->calendar->setName($name);
- }
-
- /**
- * Get description
- *
- * @return string
- *
- * @since 1.0.0
- */
- public function getDescription() : string
- {
- return $this->description;
- }
-
- /**
- * Set Description
- *
- * @param string $description Description
- *
- * @return void
- *
- * @since 1.0.0
- */
- public function setDescription(string $description) : void
- {
- $this->description = $description;
- }
-
- /**
- * Get description
- *
- * @return string
- *
- * @since 1.0.0
- */
- public function getDescriptionRaw() : string
- {
- return $this->descriptionRaw;
- }
-
- /**
- * Set Description
- *
- * @param string $description Description
- *
- * @return void
- *
- * @since 1.0.0
- */
- public function setDescriptionRaw(string $description) : void
- {
- $this->descriptionRaw = $description;
+ $this->calendar->name = $name;
}
/**
@@ -691,40 +639,4 @@ class Project
{
$this->earnings = $earnings;
}
-
- /**
- * Get created at
- *
- * @return \DateTimeImmutable
- *
- * @since 1.0.0
- */
- public function getCreatedAt() : \DateTimeImmutable
- {
- return $this->createdAt;
- }
-
- /**
- * Get created by
- *
- * @return Account
- *
- * @since 1.0.0
- */
- public function getCreatedBy() : Account
- {
- return $this->createdBy;
- }
-
- /**
- * Set created by
- *
- * @param Account $createdBy Creator
- *
- * @since 1.0.0
- */
- public function setCreatedBy(Account $createdBy) : void
- {
- $this->createdBy = $createdBy;
- }
}
diff --git a/Theme/Backend/projectmanagement-list.tpl.php b/Theme/Backend/projectmanagement-list.tpl.php
index 601863a..3a46526 100755
--- a/Theme/Backend/projectmanagement-list.tpl.php
+++ b/Theme/Backend/projectmanagement-list.tpl.php
@@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
$value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}projectmanagement/profile?{?}&id=' . $value->getId()); ?>
- | = $this->printHtml($value->getName()); ?>
+ | = $this->printHtml($value->name); ?>
| = $this->printHtml($value->getStart()->format('Y-m-d')); ?>
| = $this->printHtml($value->getEnd()->format('Y-m-d')); ?>
diff --git a/Theme/Backend/projectmanagement-profile.tpl.php b/Theme/Backend/projectmanagement-profile.tpl.php
index 35d4b68..f675894 100755
--- a/Theme/Backend/projectmanagement-profile.tpl.php
+++ b/Theme/Backend/projectmanagement-profile.tpl.php
@@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
|
|
|
|
|
- |
|
+ |
|
|
|
|
|