2012-05-18 06:59:49 +04:00
|
|
|
<?php
|
2013-03-20 19:28:41 +04:00
|
|
|
|
2012-05-18 06:59:49 +04:00
|
|
|
/**
|
2013-03-20 19:28:41 +04:00
|
|
|
* ownCloud - News
|
2012-05-18 06:59:49 +04:00
|
|
|
*
|
|
|
|
* @author Alessandro Cosentino
|
2013-03-20 19:28:41 +04:00
|
|
|
* @author Bernhard Posselt
|
|
|
|
* @copyright 2012 Alessandro Cosentino cosenal@gmail.com
|
2013-08-26 19:23:22 +04:00
|
|
|
* @copyright 2012 Bernhard Posselt dev@bernhard-posselt.com
|
2013-03-20 19:28:41 +04:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 3 of the License, or any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
2012-07-11 23:17:32 +04:00
|
|
|
*
|
2013-03-20 19:28:41 +04:00
|
|
|
* You should have received a copy of the GNU Affero General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2012-07-11 23:17:32 +04:00
|
|
|
*
|
2012-05-18 06:59:49 +04:00
|
|
|
*/
|
|
|
|
|
2013-03-20 19:28:41 +04:00
|
|
|
namespace OCA\News\Db;
|
2012-07-11 23:17:32 +04:00
|
|
|
|
2012-10-14 23:15:16 +04:00
|
|
|
|
2013-05-02 14:53:17 +04:00
|
|
|
class Folder extends Entity implements IAPI {
|
2012-05-28 22:27:18 +04:00
|
|
|
|
2013-03-20 19:28:41 +04:00
|
|
|
public $parentId;
|
|
|
|
public $name;
|
|
|
|
public $userId;
|
|
|
|
public $opened;
|
2013-05-10 15:30:00 +04:00
|
|
|
public $deletedAt;
|
2012-09-08 21:11:22 +04:00
|
|
|
|
2013-03-26 21:04:02 +04:00
|
|
|
public function __construct(){
|
2014-04-04 22:06:46 +04:00
|
|
|
$this->addType('parentId', 'integer');
|
|
|
|
$this->addType('opened', 'boolean');
|
|
|
|
$this->addType('deletedAt', 'integer');
|
2013-03-26 21:04:02 +04:00
|
|
|
}
|
|
|
|
|
2013-05-02 14:53:17 +04:00
|
|
|
|
|
|
|
public function toAPI() {
|
|
|
|
return array(
|
|
|
|
'id' => $this->getId(),
|
|
|
|
'name' => $this->getName()
|
|
|
|
);
|
|
|
|
}
|
2012-05-18 06:59:49 +04:00
|
|
|
}
|