Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Structs
Collection.php
Go to the documentation of this file.
1
<?php
2
namespace
Elgg\Structs
;
3
4
use
Countable
;
5
use
Iterator
;
6
35
interface
Collection
extends
Countable
,
Iterator
{
36
44
public
function
filter
(callable
$filter
);
45
53
public
function
contains
(
$item
);
54
65
public
function
map
(callable $mapper);
66
}
Elgg\Structs\Collection\map
map(callable $mapper)
Take items of the collection and return a new collection with all the items having the $mapper applie...
Elgg\Structs
Definition:
ArrayCollection.php:2
$item
$item
Definition:
item.php:12
$filter
if(!$vars['title']&&$vars['title']!==false) if(isset($vars['filter_override'])) if(!isset($vars['filter'])&&elgg_is_logged_in()&&$context) $filter
Definition:
content.php:62
Countable
Elgg\Structs\Collection\contains
contains($item)
Returns true iff the item is in this collection at least once.
Elgg\Structs\Collection
Definition:
Collection.php:35
Iterator
Elgg\Structs\Collection\filter
filter(callable $filter)
Returns a new collection only containing the elements which pass the filter.
Generated on Sun Nov 3 2024 00:01:24 for Elgg by
1.8.11