mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Added more tests and link some files. Update DB Scheme
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
// db/author.php
|
||||
namespace OCA\OcSms\Db;
|
||||
|
||||
use \OCP\AppFramework\Db\Entity;
|
||||
|
||||
class Sms extends Entity {
|
||||
|
||||
protected $userId;
|
||||
protected $added;
|
||||
protected $lastmodified;
|
||||
protected $smsRead;
|
||||
protected $smsSeen;
|
||||
protected $smsDate;
|
||||
protected $smsDraft;
|
||||
protected $smsId;
|
||||
protected $smsAddress;
|
||||
protected $smsMsg;
|
||||
|
||||
public function __construct() {
|
||||
$this->addType('smsId', 'integer');
|
||||
$this->addType('smsDraft', 'boolean');
|
||||
$this->addType('smsRead', 'boolean');
|
||||
$this->addType('smsSeen', 'boolean');
|
||||
}
|
||||
|
||||
id | user_id | added | lastmodified | sms_read | sms_date | sms_id | sms_address | sms_msg
|
||||
}
|
||||
?>
|
||||
@@ -13,7 +13,7 @@ namespace OCA\OcSms\Db;
|
||||
|
||||
use \OCP\IDb;
|
||||
|
||||
class Sms {
|
||||
class SmsMgr {
|
||||
private $db;
|
||||
|
||||
public function __construct(IDb $db) {
|
||||
@@ -21,7 +21,8 @@ class Sms {
|
||||
}
|
||||
|
||||
// @TODO
|
||||
public function saveAll() {
|
||||
public function saveAll($smsList) {
|
||||
|
||||
}
|
||||
|
||||
public function find($id) {
|
||||
Reference in New Issue
Block a user