Skip to content

Commit

Permalink
Migrate Feedback Service (vufind-org#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
skellamp authored Mar 7, 2023
1 parent 5c767b5 commit 515416f
Show file tree
Hide file tree
Showing 15 changed files with 627 additions and 269 deletions.
1 change: 1 addition & 0 deletions module/VuFind/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@
'result_cache' => 'filesystem',
'metadata_cache' => 'filesystem',
'hydration_cache' => 'filesystem',
'proxy_dir' => LOCAL_CACHE_DIR . '/doctrine-proxies',
],
],
'driver' => [
Expand Down
106 changes: 103 additions & 3 deletions module/VuFind/src/VuFind/Db/Entity/Feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Feedback implements EntityInterface
/**
* Form data
*
* @var string
* @var mixed
*
* @ORM\Column(name="form_data",
* type="json",
Expand Down Expand Up @@ -181,6 +181,16 @@ class Feedback implements EntityInterface
*/
protected $updatedBy;

/**
* Id getter
*
* @return int
*/
public function getId()
{
return $this->id;
}

/**
* Message setter
*
Expand All @@ -194,19 +204,39 @@ public function setMessage(string $message): Feedback
return $this;
}

/**
* Message getter
*
* @return string
*/
public function getMessage()
{
return $this->message;
}

/**
* Form data setter.
*
* @param string $data Form data
* @param mixed $data Form data
*
* @return Feedback
*/
public function setFormData(string $data): Feedback
public function setFormData($data): Feedback
{
$this->formData = $data;
return $this;
}

/**
* Form data getter
*
* @return mixed
*/
public function getFormData()
{
return $this->formData;
}

/**
* Form name setter.
*
Expand All @@ -220,6 +250,16 @@ public function setFormName(string $name): Feedback
return $this;
}

/**
* Form name getter
*
* @return string
*/
public function getFormName()
{
return $this->formName;
}

/**
* Created setter.
*
Expand All @@ -233,6 +273,16 @@ public function setCreated(DateTime $dateTime): Feedback
return $this;
}

/**
* Created getter
*
* @return Datetime
*/
public function getCreated()
{
return $this->created;
}

/**
* Updated setter.
*
Expand All @@ -246,6 +296,16 @@ public function setUpdated(DateTime $dateTime): Feedback
return $this;
}

/**
* Updated getter
*
* @return Datetime
*/
public function getUpdated()
{
return $this->updated;
}

/**
* Status setter.
*
Expand All @@ -259,6 +319,16 @@ public function setStatus(string $status): Feedback
return $this;
}

/**
* Status getter
*
* @return string
*/
public function getStatus()
{
return $this->status;
}

/**
* Site URL setter.
*
Expand All @@ -272,6 +342,16 @@ public function setSiteUrl(string $url): Feedback
return $this;
}

/**
* Site URL getter
*
* @return string
*/
public function getSiteUrl()
{
return $this->siteUrl;
}

/**
* User setter.
*
Expand All @@ -285,6 +365,16 @@ public function setUser(?User $user): Feedback
return $this;
}

/**
* User getter
*
* @return User
*/
public function getUser()
{
return $this->user;
}

/**
* Updatedby setter.
*
Expand All @@ -297,4 +387,14 @@ public function setUpdatedBy(?User $user): Feedback
$this->updatedBy = $user;
return $this;
}

/**
* Updatedby getter
*
* @return User
*/
public function getUpdatedBy()
{
return $this->updatedBy;
}
}
10 changes: 10 additions & 0 deletions module/VuFind/src/VuFind/Db/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,14 @@ class User implements EntityInterface
* @ORM\Column(name="last_language", type="string", length=30, nullable=false)
*/
protected $lastLanguage = '';

/**
* Id getter
*
* @return int
*/
public function getId()
{
return $this->id;
}
}
52 changes: 0 additions & 52 deletions module/VuFind/src/VuFind/Db/Row/Feedback.php

This file was deleted.

1 change: 0 additions & 1 deletion module/VuFind/src/VuFind/Db/Row/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager
ChangeTracker::class => RowGatewayFactory::class,
Comments::class => RowGatewayFactory::class,
ExternalSession::class => RowGatewayFactory::class,
Feedback::class => RowGatewayFactory::class,
OaiResumption::class => RowGatewayFactory::class,
Ratings::class => RowGatewayFactory::class,
Record::class => RowGatewayFactory::class,
Expand Down
Loading

0 comments on commit 515416f

Please sign in to comment.