Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions lib/Db/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
namespace OCA\Richdocuments\Db;

use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;

/**
* @method void setUid(string $uid)
Expand All @@ -32,9 +33,9 @@ class Asset extends Entity {
protected $timestamp;

public function __construct() {
$this->addType('uid', 'string');
$this->addType('fileid', 'int');
$this->addType('token', 'string');
$this->addType('timestamp', 'int');
$this->addType('uid', Types::STRING);
$this->addType('fileid', Types::INTEGER);
$this->addType('token', Types::STRING);
$this->addType('timestamp', Types::INTEGER);
}
}
19 changes: 10 additions & 9 deletions lib/Db/Direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
namespace OCA\Richdocuments\Db;

use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;

/**
* @method void setToken(string $token)
Expand Down Expand Up @@ -51,14 +52,14 @@ class Direct extends Entity {
protected $initiatorToken;

public function __construct() {
$this->addType('token', 'string');
$this->addType('uid', 'string');
$this->addType('fileid', 'int');
$this->addType('timestamp', 'int');
$this->addType('templateDestination', 'int');
$this->addType('templateId', 'int');
$this->addType('share', 'string');
$this->addType('initiatorHost', 'string');
$this->addType('initiatorToken', 'string');
$this->addType('token', Types::STRING);
$this->addType('uid', Types::STRING);
$this->addType('fileid', Types::INTEGER);
$this->addType('timestamp', Types::INTEGER);
$this->addType('templateDestination', Types::INTEGER);
$this->addType('templateId', Types::INTEGER);
$this->addType('share', Types::STRING);
$this->addType('initiatorHost', Types::STRING);
$this->addType('initiatorToken', Types::STRING);
}
}
29 changes: 15 additions & 14 deletions lib/Db/Wopi.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace OCA\Richdocuments\Db;

use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;

/**
* @package OCA\Richdocuments\Db
Expand Down Expand Up @@ -119,20 +120,20 @@ class Wopi extends Entity implements \JsonSerializable {
protected $tokenType = 0;

public function __construct() {
$this->addType('ownerUid', 'string');
$this->addType('editorUid', 'string');
$this->addType('fileid', 'int');
$this->addType('version', 'int');
$this->addType('canwrite', 'bool');
$this->addType('serverHost', 'string');
$this->addType('token', 'string');
$this->addType('expiry', 'int');
$this->addType('guestDisplayname', 'string');
$this->addType('templateDestination', 'int');
$this->addType('templateId', 'int');
$this->addType('hideDownload', 'bool');
$this->addType('direct', 'bool');
$this->addType('tokenType', 'int');
$this->addType('ownerUid', Types::STRING);
$this->addType('editorUid', Types::STRING);
$this->addType('fileid', Types::INTEGER);
$this->addType('version', Types::INTEGER);
$this->addType('canwrite', Types::BOOLEAN);
$this->addType('serverHost', Types::STRING);
$this->addType('token', Types::STRING);
$this->addType('expiry', Types::INTEGER);
$this->addType('guestDisplayname', Types::STRING);
$this->addType('templateDestination', Types::INTEGER);
$this->addType('templateId', Types::INTEGER);
$this->addType('hideDownload', Types::BOOLEAN);
$this->addType('direct', Types::BOOLEAN);
$this->addType('tokenType', Types::INTEGER);
}

public function hasTemplateId() {
Expand Down
Loading