Part of the Joomla Framework Compat Package
- Copyright
- Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. GNU General Public License version 2 or later; see LICENSE CallbackFilterIterator using the callback to determine which items are accepted or rejected.
1.2.0
◆ __construct()
__construct |
( |
\Iterator |
$iterator, |
|
|
|
$callback |
|
) |
| |
Creates a filtered iterator using the callback to determine which items are accepted or rejected.
- Paramètres
-
\Iterator | $iterator | The iterator to be filtered. |
callable | $callback | The callback, which should return TRUE to accept the current item or FALSE otherwise. May be any valid callable value. The callback should accept up to three arguments: the current item, the current key and the iterator, respectively. ``` php function my_callback($current, $key, $iterator) ``` |
- Exceptions
-
- Depuis
- 1.2.0
Références $callback.
◆ accept()
◆ $callback
La documentation de cette classe a été générée à partir du fichier suivant :