mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-08 16:27:42 +08:00
27 lines
558 B
PHP
27 lines
558 B
PHP
|
<?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 {
|
||
|
const TABLE_NAME = '`*PREFIX*passman_share_request`';
|
||
|
|
||
|
public function __construct(IDBConnection $db, Utils $utils) {
|
||
|
parent::__construct($db, self::TABLE_NAME);
|
||
|
$this->utils = $utils;
|
||
|
}
|
||
|
|
||
|
public function createRequest(ShareRequest $request){
|
||
|
parent::insert($request);
|
||
|
}
|
||
|
}
|