From d649e2d11cea4fb222f10413f11ab4095d12465f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 4 Apr 2014 20:06:46 +0200 Subject: write out type name to prevent confusion when using gettype --- db/feed.php | 14 +++++++------- db/folder.php | 6 +++--- db/item.php | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'db') diff --git a/db/feed.php b/db/feed.php index b59763c4d..668e9a041 100644 --- a/db/feed.php +++ b/db/feed.php @@ -44,13 +44,13 @@ class Feed extends Entity implements IAPI { public $articlesPerUpdate; public function __construct(){ - $this->addType('parentId', 'int'); - $this->addType('added', 'int'); - $this->addType('folderId', 'int'); - $this->addType('unreadCount', 'int'); - $this->addType('preventUpdate', 'bool'); - $this->addType('deletedAt', 'int'); - $this->addType('articlesPerUpdate', 'int'); + $this->addType('parentId', 'integer'); + $this->addType('added', 'integer'); + $this->addType('folderId', 'integer'); + $this->addType('unreadCount', 'integer'); + $this->addType('preventUpdate', 'boolean'); + $this->addType('deletedAt', 'integer'); + $this->addType('articlesPerUpdate', 'integer'); } diff --git a/db/folder.php b/db/folder.php index 71dca1945..e344aaecd 100644 --- a/db/folder.php +++ b/db/folder.php @@ -37,9 +37,9 @@ class Folder extends Entity implements IAPI { public $deletedAt; public function __construct(){ - $this->addType('parentId', 'int'); - $this->addType('opened', 'bool'); - $this->addType('deletedAt', 'int'); + $this->addType('parentId', 'integer'); + $this->addType('opened', 'boolean'); + $this->addType('deletedAt', 'integer'); } diff --git a/db/item.php b/db/item.php index 8f516f9c6..6f2ee9e6f 100644 --- a/db/item.php +++ b/db/item.php @@ -45,10 +45,10 @@ class Item extends Entity implements IAPI { public function __construct(){ - $this->addType('pubDate', 'int'); - $this->addType('feedId', 'int'); - $this->addType('status', 'int'); - $this->addType('lastModified', 'int'); + $this->addType('pubDate', 'integer'); + $this->addType('feedId', 'integer'); + $this->addType('status', 'integer'); + $this->addType('lastModified', 'integer'); } -- cgit v1.2.3