1
0
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:
stagprom
2014-11-25 13:28:43 +01:00
parent 4519f0088d
commit 405ee9af6f
4 changed files with 34 additions and 25 deletions
+6 -1
View File
@@ -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);
}
}