mywiki/lib/Db/Wiki.php
2022-03-06 11:49:27 +00:00

25 lines
478 B
PHP

<?php
namespace OCA\MyWiki\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Wiki extends Entity implements JsonSerializable {
protected $title;
protected $fileId;
protected $userId;
public function __construct() {
$this->addType('id','integer');
}
public function jsonSerialize() {
return [
'id' => $this->id,
'title' => $this->title,
'file_id' => $this->file_id
];
}
}