news/db/folder.php

50 строки
1.3 KiB
PHP
Исходник Обычный вид История

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
* @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.
*
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-05-18 06:59:49 +04:00
*/
2013-03-20 19:28:41 +04:00
namespace OCA\News\Db;
2012-10-14 23:15:16 +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;
public $deletedAt;
public function __construct(){
$this->addType('parentId', 'integer');
$this->addType('opened', 'boolean');
$this->addType('deletedAt', 'integer');
}
public function toAPI() {
return array(
'id' => $this->getId(),
'name' => $this->getName()
);
}
2012-05-18 06:59:49 +04:00
}