mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-20 12:52:58 +00:00
Added many comments to sourcees
modified: appinfo/formatphonenumber.php modified: appinfo/ocsmsapp.php modified: controller/smscontroller.php modified: db/smsmapper.php
This commit is contained in:
@@ -27,6 +27,9 @@ class OcSmsApp extends App {
|
||||
/**
|
||||
* @var array used to cache the parsed contacts for every request
|
||||
*/
|
||||
/*
|
||||
caching dosn´t work because on every call all will be reinstantiated
|
||||
*/
|
||||
private static $contacts; // dosn´t work
|
||||
|
||||
private static $contactsInverted; // dosn´t work
|
||||
@@ -135,6 +138,9 @@ class OcSmsApp extends App {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
all numbers will be formatted
|
||||
*/
|
||||
private function pushPhoneNumberToCache($rawPhone, $contactName) {
|
||||
|
||||
$phoneNb = FormatPhoneNumber::formatPhoneNumber($rawPhone);
|
||||
@@ -143,6 +149,5 @@ class OcSmsApp extends App {
|
||||
if (!isset(self::$contactsInverted[$contactName]))
|
||||
self::$contactsInverted[$contactName] = array();
|
||||
array_push(self::$contactsInverted[$contactName], $phoneNb);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user