@@ 297-305 (lines=9) @@ | ||
294 | * @return array|bool false if the group was not found |
|
295 | * @see find() |
|
296 | */ |
|
297 | public function findBy($field = null, $value = null) |
|
298 | { |
|
299 | if (!$field || !$value) { |
|
300 | return false; |
|
301 | } |
|
302 | ||
303 | $options = array($field => $value); |
|
304 | return $this->find(array(), $options); |
|
305 | } |
|
306 | ||
307 | /** |
|
308 | * Get group data by cn through group_show method |
@@ 105-113 (lines=9) @@ | ||
102 | * @version GIT: 0.1.0 |
|
103 | * @see find() |
|
104 | */ |
|
105 | public function findBy($field = null, $value = null) |
|
106 | { |
|
107 | if (!$field || !$value) { |
|
108 | return false; |
|
109 | } |
|
110 | ||
111 | $options = array($field => $value); |
|
112 | return $this->find(array(), $options); |
|
113 | } |
|
114 | ||
115 | /** |
|
116 | * Get user data by login through user_show method |