@@ 64-77 (lines=14) @@ | ||
61 | * |
|
62 | * @return mixed Data array entry or null if not found |
|
63 | */ |
|
64 | public function get() |
|
65 | { |
|
66 | $data = $this->getData(); |
|
67 | ||
68 | foreach (func_get_args() as $arg) { |
|
69 | if (isset($data[$arg])) { |
|
70 | $data = $data[$arg]; |
|
71 | } else { |
|
72 | return; |
|
73 | } |
|
74 | } |
|
75 | ||
76 | return $data; |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * Returns the index object. |
@@ 56-69 (lines=14) @@ | ||
53 | * |
|
54 | * @return array Node stats for the given field or null if not found |
|
55 | */ |
|
56 | public function get() |
|
57 | { |
|
58 | $data = $this->getData(); |
|
59 | ||
60 | foreach (func_get_args() as $arg) { |
|
61 | if (isset($data[$arg])) { |
|
62 | $data = $data[$arg]; |
|
63 | } else { |
|
64 | return; |
|
65 | } |
|
66 | } |
|
67 | ||
68 | return $data; |
|
69 | } |
|
70 | ||
71 | /** |
|
72 | * Returns all stats data. |
@@ 73-86 (lines=14) @@ | ||
70 | * |
|
71 | * @return mixed Data array entry or null if not found |
|
72 | */ |
|
73 | public function get() |
|
74 | { |
|
75 | $data = $this->getData(); |
|
76 | ||
77 | foreach (func_get_args() as $arg) { |
|
78 | if (isset($data[$arg])) { |
|
79 | $data = $data[$arg]; |
|
80 | } else { |
|
81 | return; |
|
82 | } |
|
83 | } |
|
84 | ||
85 | return $data; |
|
86 | } |
|
87 | ||
88 | /** |
|
89 | * Return port of the node. |