mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-12-06 11:22:41 +01:00
added resource entities
This commit is contained in:
parent
d558c1dd82
commit
8064b75093
2 changed files with 72 additions and 0 deletions
22
lib/Db/Resource.php
Normal file
22
lib/Db/Resource.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace OCA\OrganizationFolders\Db;
|
||||
|
||||
use JsonSerializable;
|
||||
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
abstract class Resource extends Entity implements JsonSerializable {
|
||||
protected $groupFolderId;
|
||||
protected $parentResource;
|
||||
protected $name;
|
||||
protected $active;
|
||||
protected $lastUpdatedTimestamp;
|
||||
|
||||
public function __construct() {
|
||||
$this->addType('groupFolderId','integer');
|
||||
$this->addType('parentResource','integer');
|
||||
$this->addType('active','bool');
|
||||
$this->addType('lastUpdatedTimestamp','integer');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue