2016-10-02 07:56:36 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: wolfi
|
|
|
|
* Date: 1/10/16
|
|
|
|
* Time: 23:15
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCA\Passman\Db;
|
|
|
|
|
|
|
|
|
|
|
|
use OCA\Passman\Utility\Utils;
|
|
|
|
use OCP\AppFramework\Db\Mapper;
|
|
|
|
use OCP\IDBConnection;
|
|
|
|
|
|
|
|
class ShareRequestMapper extends Mapper {
|
2016-10-02 17:22:19 +08:00
|
|
|
const TABLE_NAME = 'passman_share_request';
|
2016-10-02 07:56:36 +08:00
|
|
|
|
|
|
|
public function __construct(IDBConnection $db, Utils $utils) {
|
|
|
|
parent::__construct($db, self::TABLE_NAME);
|
|
|
|
$this->utils = $utils;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function createRequest(ShareRequest $request){
|
2016-10-02 17:43:31 +08:00
|
|
|
return $this->insert($request);
|
2016-10-02 07:56:36 +08:00
|
|
|
}
|
|
|
|
}
|