Browse code

removed Telnyx Plivo Twilio Flowroute appinfo/info.xml appinfo/signature.json README.md lib/Controller/AuthorApiController.php

DoubleBastionAdmin authored on 20/08/2022 16:26:33
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,61 +0,0 @@
1
-<?php
2
-
3
-namespace Telnyx\Util;
4
-
5
-class AutoPagingIterator implements \Iterator
6
-{
7
-    private $lastId = null;
8
-    private $page = null;
9
-    private $pageOffset = 0;
10
-    private $params = [];
11
-
12
-    public function __construct($collection, $params)
13
-    {
14
-        $this->page = $collection;
15
-        $this->params = $params;
16
-    }
17
-
18
-    public function rewind()
19
-    {
20
-        // Actually rewinding would require making a copy of the original page.
21
-    }
22
-
23
-    public function current()
24
-    {
25
-        $item = current($this->page->data);
26
-        $this->lastId = $item !== false ? $item['id'] : null;
27
-
28
-        return $item;
29
-    }
30
-
31
-    public function key()
32
-    {
33
-        return key($this->page->data) + $this->pageOffset;
34
-    }
35
-
36
-    public function next()
37
-    {
38
-        $item = next($this->page->data);
39
-        if ($item === false) {
40
-            // If we've run out of data on the current page, try to fetch another one
41
-            // and increase the offset the new page would start at
42
-            $this->pageOffset += count($this->page->data);
43
-            if ($this->page['has_more']) {
44
-                $this->params = array_merge(
45
-                    $this->params ?: [],
46
-                    ['starting_after' => $this->lastId]
47
-                );
48
-                $this->page = $this->page->all($this->params);
49
-            } else {
50
-                return false;
51
-            }
52
-        }
53
-    }
54
-
55
-    public function valid()
56
-    {
57
-        $key = key($this->page->data);
58
-        $valid = ($key !== null && $key !== false);
59
-        return $valid;
60
-    }
61
-}
Browse code

added appinfo/signature.json Telnyx Twilio Flowroute

DoubleBastionAdmin authored on 19/08/2022 13:10:24
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
1
+<?php
2
+
3
+namespace Telnyx\Util;
4
+
5
+class AutoPagingIterator implements \Iterator
6
+{
7
+    private $lastId = null;
8
+    private $page = null;
9
+    private $pageOffset = 0;
10
+    private $params = [];
11
+
12
+    public function __construct($collection, $params)
13
+    {
14
+        $this->page = $collection;
15
+        $this->params = $params;
16
+    }
17
+
18
+    public function rewind()
19
+    {
20
+        // Actually rewinding would require making a copy of the original page.
21
+    }
22
+
23
+    public function current()
24
+    {
25
+        $item = current($this->page->data);
26
+        $this->lastId = $item !== false ? $item['id'] : null;
27
+
28
+        return $item;
29
+    }
30
+
31
+    public function key()
32
+    {
33
+        return key($this->page->data) + $this->pageOffset;
34
+    }
35
+
36
+    public function next()
37
+    {
38
+        $item = next($this->page->data);
39
+        if ($item === false) {
40
+            // If we've run out of data on the current page, try to fetch another one
41
+            // and increase the offset the new page would start at
42
+            $this->pageOffset += count($this->page->data);
43
+            if ($this->page['has_more']) {
44
+                $this->params = array_merge(
45
+                    $this->params ?: [],
46
+                    ['starting_after' => $this->lastId]
47
+                );
48
+                $this->page = $this->page->all($this->params);
49
+            } else {
50
+                return false;
51
+            }
52
+        }
53
+    }
54
+
55
+    public function valid()
56
+    {
57
+        $key = key($this->page->data);
58
+        $valid = ($key !== null && $key !== false);
59
+        return $valid;
60
+    }
61
+}
Browse code

removed appinfo/signature.json and Telnyx

DoubleBastionAdmin authored on 19/08/2022 12:45:59
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,61 +0,0 @@
1
-<?php
2
-
3
-namespace Telnyx\Util;
4
-
5
-class AutoPagingIterator implements \Iterator
6
-{
7
-    private $lastId = null;
8
-    private $page = null;
9
-    private $pageOffset = 0;
10
-    private $params = [];
11
-
12
-    public function __construct($collection, $params)
13
-    {
14
-        $this->page = $collection;
15
-        $this->params = $params;
16
-    }
17
-
18
-    public function rewind()
19
-    {
20
-        // Actually rewinding would require making a copy of the original page.
21
-    }
22
-
23
-    public function current()
24
-    {
25
-        $item = current($this->page->data);
26
-        $this->lastId = $item !== false ? $item['id'] : null;
27
-
28
-        return $item;
29
-    }
30
-
31
-    public function key()
32
-    {
33
-        return key($this->page->data) + $this->pageOffset;
34
-    }
35
-
36
-    public function next()
37
-    {
38
-        $item = next($this->page->data);
39
-        if ($item === false) {
40
-            // If we've run out of data on the current page, try to fetch another one
41
-            // and increase the offset the new page would start at
42
-            $this->pageOffset += count($this->page->data);
43
-            if ($this->page['has_more']) {
44
-                $this->params = array_merge(
45
-                    $this->params ?: [],
46
-                    ['starting_after' => $this->lastId]
47
-                );
48
-                $this->page = $this->page->all($this->params);
49
-            } else {
50
-                return false;
51
-            }
52
-        }
53
-    }
54
-
55
-    public function valid()
56
-    {
57
-        $key = key($this->page->data);
58
-        $valid = ($key !== null && $key !== false);
59
-        return $valid;
60
-    }
61
-}
Browse code

added appinfo/signature.json and Telnyx directory

DoubleBastionAdmin authored on 19/08/2022 11:38:54
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
1
+<?php
2
+
3
+namespace Telnyx\Util;
4
+
5
+class AutoPagingIterator implements \Iterator
6
+{
7
+    private $lastId = null;
8
+    private $page = null;
9
+    private $pageOffset = 0;
10
+    private $params = [];
11
+
12
+    public function __construct($collection, $params)
13
+    {
14
+        $this->page = $collection;
15
+        $this->params = $params;
16
+    }
17
+
18
+    public function rewind()
19
+    {
20
+        // Actually rewinding would require making a copy of the original page.
21
+    }
22
+
23
+    public function current()
24
+    {
25
+        $item = current($this->page->data);
26
+        $this->lastId = $item !== false ? $item['id'] : null;
27
+
28
+        return $item;
29
+    }
30
+
31
+    public function key()
32
+    {
33
+        return key($this->page->data) + $this->pageOffset;
34
+    }
35
+
36
+    public function next()
37
+    {
38
+        $item = next($this->page->data);
39
+        if ($item === false) {
40
+            // If we've run out of data on the current page, try to fetch another one
41
+            // and increase the offset the new page would start at
42
+            $this->pageOffset += count($this->page->data);
43
+            if ($this->page['has_more']) {
44
+                $this->params = array_merge(
45
+                    $this->params ?: [],
46
+                    ['starting_after' => $this->lastId]
47
+                );
48
+                $this->page = $this->page->all($this->params);
49
+            } else {
50
+                return false;
51
+            }
52
+        }
53
+    }
54
+
55
+    public function valid()
56
+    {
57
+        $key = key($this->page->data);
58
+        $valid = ($key !== null && $key !== false);
59
+        return $valid;
60
+    }
61
+}
Browse code

removed Telnyx directory

DoubleBastionAdmin authored on 19/08/2022 11:12:03
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,61 +0,0 @@
1
-<?php
2
-
3
-namespace Telnyx\Util;
4
-
5
-class AutoPagingIterator implements \Iterator
6
-{
7
-    private $lastId = null;
8
-    private $page = null;
9
-    private $pageOffset = 0;
10
-    private $params = [];
11
-
12
-    public function __construct($collection, $params)
13
-    {
14
-        $this->page = $collection;
15
-        $this->params = $params;
16
-    }
17
-
18
-    public function rewind()
19
-    {
20
-        // Actually rewinding would require making a copy of the original page.
21
-    }
22
-
23
-    public function current()
24
-    {
25
-        $item = current($this->page->data);
26
-        $this->lastId = $item !== false ? $item['id'] : null;
27
-
28
-        return $item;
29
-    }
30
-
31
-    public function key()
32
-    {
33
-        return key($this->page->data) + $this->pageOffset;
34
-    }
35
-
36
-    public function next()
37
-    {
38
-        $item = next($this->page->data);
39
-        if ($item === false) {
40
-            // If we've run out of data on the current page, try to fetch another one
41
-            // and increase the offset the new page would start at
42
-            $this->pageOffset += count($this->page->data);
43
-            if ($this->page['has_more']) {
44
-                $this->params = array_merge(
45
-                    $this->params ?: [],
46
-                    ['starting_after' => $this->lastId]
47
-                );
48
-                $this->page = $this->page->all($this->params);
49
-            } else {
50
-                return false;
51
-            }
52
-        }
53
-    }
54
-
55
-    public function valid()
56
-    {
57
-        $key = key($this->page->data);
58
-        $valid = ($key !== null && $key !== false);
59
-        return $valid;
60
-    }
61
-}
Browse code

Created repository.

DoubleBastionAdmin authored on 01/03/2022 23:47:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
1
+<?php
2
+
3
+namespace Telnyx\Util;
4
+
5
+class AutoPagingIterator implements \Iterator
6
+{
7
+    private $lastId = null;
8
+    private $page = null;
9
+    private $pageOffset = 0;
10
+    private $params = [];
11
+
12
+    public function __construct($collection, $params)
13
+    {
14
+        $this->page = $collection;
15
+        $this->params = $params;
16
+    }
17
+
18
+    public function rewind()
19
+    {
20
+        // Actually rewinding would require making a copy of the original page.
21
+    }
22
+
23
+    public function current()
24
+    {
25
+        $item = current($this->page->data);
26
+        $this->lastId = $item !== false ? $item['id'] : null;
27
+
28
+        return $item;
29
+    }
30
+
31
+    public function key()
32
+    {
33
+        return key($this->page->data) + $this->pageOffset;
34
+    }
35
+
36
+    public function next()
37
+    {
38
+        $item = next($this->page->data);
39
+        if ($item === false) {
40
+            // If we've run out of data on the current page, try to fetch another one
41
+            // and increase the offset the new page would start at
42
+            $this->pageOffset += count($this->page->data);
43
+            if ($this->page['has_more']) {
44
+                $this->params = array_merge(
45
+                    $this->params ?: [],
46
+                    ['starting_after' => $this->lastId]
47
+                );
48
+                $this->page = $this->page->all($this->params);
49
+            } else {
50
+                return false;
51
+            }
52
+        }
53
+    }
54
+
55
+    public function valid()
56
+    {
57
+        $key = key($this->page->data);
58
+        $valid = ($key !== null && $key !== false);
59
+        return $valid;
60
+    }
61
+}