1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Rename smsMgr to smsMapper to follow OC guidelines. Also implement saveAll alpha function

This commit is contained in:
Loïc Blot (@U-Exp)
2014-09-12 16:13:40 +02:00
parent 0a16d05c0d
commit aefea6b8ff
5 changed files with 82 additions and 45 deletions
+4 -2
View File
@@ -15,7 +15,7 @@ namespace OCA\OcSms\Controller;
use \OCP\IRequest;
use \OCP\AppFramework\Http\TemplateResponse;
use \OCP\AppFramework\Controller;
use OCA\OcSms\Db\SmsMgr;
use OCA\OcSms\Db\SmsMapper;
class SmsController extends Controller {
@@ -71,9 +71,11 @@ class SmsController extends Controller {
return "Error: Invalid SMS date";
}
$smsMgr = new SmsMgr();
// @ TODO: test address and body ?
}
$smsMgr = new SmsMgr();
$smsMgr->saveAll($smsDAtas);
return "OK";
}