Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/Poll.php')
-rw-r--r--lib/Db/Poll.php30
1 files changed, 8 insertions, 22 deletions
diff --git a/lib/Db/Poll.php b/lib/Db/Poll.php
index 8fa2d056..d574a481 100644
--- a/lib/Db/Poll.php
+++ b/lib/Db/Poll.php
@@ -39,29 +39,29 @@ use OCP\AppFramework\Db\Entity;
* @method void setDescription(string $value)
* @method string getOwner()
* @method void setOwner(string $value)
- * @method integer getCreated()
+ * @method int getCreated()
* @method void setCreated(integer $value)
- * @method integer getExpire()
+ * @method int getExpire()
* @method void setExpire(integer $value)
- * @method integer getDeleted()
+ * @method int getDeleted()
* @method void setDeleted(integer $value)
* @method string getAccess()
* @method void setAccess(string $value)
- * @method integer getAnonymous()
+ * @method int getAnonymous()
* @method void setAnonymous(integer $value)
- * @method integer getFullAnonymous()
+ * @method int getFullAnonymous()
* @method void setFullAnonymous(integer $value)
- * @method integer getAllowMaybe()
+ * @method int getAllowMaybe()
* @method void setAllowMaybe(integer $value)
* @method string getOptions()
* @method void setOptions(string $value)
* @method string getSettings()
* @method void setSettings(string $value)
- * @method integer getVoteLimit()
+ * @method int getVoteLimit()
* @method void setVoteLimit(integer $value)
* @method string getShowResults()
* @method void setShowResults(string $value)
- * @method integer getAdminAccess()
+ * @method int getAdminAccess()
* @method void setAdminAccess(integer $value)
*/
class Poll extends Entity implements JsonSerializable {
@@ -135,20 +135,6 @@ class Poll extends Entity implements JsonSerializable {
];
}
- public function deserializeArray($array) {
- $this->setTitle(isset($array['title']) ? $array['title'] : $this->getTitle());
- $this->setDescription(isset($array['description']) ? $array['description'] : $this->getDescription());
- $this->setAccess(isset($array['access']) ? $array['access'] : $this->getAccess());
- $this->setExpire(isset($array['expire']) ? $array['expire'] : $this->getExpire());
- $this->setAnonymous(isset($array['anonymous']) ? $array['anonymous'] : $this->getAnonymous());
- $this->setAllowMaybe(isset($array['allowMaybe']) ? $array['allowMaybe'] : $this->getAllowMaybe());
- $this->setVoteLimit(isset($array['voteLimit']) ? $array['voteLimit'] : $this->getVoteLimit());
- $this->setShowResults(isset($array['showResults']) ? $array['showResults'] : $this->getShowResults());
- $this->setDeleted(isset($array['deleted']) ? $array['deleted'] : $this->getDeleted());
- $this->setAdminAccess(isset($array['adminAccess']) ? $array['adminAccess'] : $this->getAdminAccess());
- return $this;
- }
-
private function getDisplayName() {
if (\OC::$server->getUserManager()->get($this->owner) instanceof IUser) {