MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Models\MobileCollection Class Reference

A collection of pages, which are represented by the MobilePage class. More...

+ Inheritance diagram for MobileFrontend\Models\MobileCollection:
+ Collaboration diagram for MobileFrontend\Models\MobileCollection:

Public Member Functions

 count ()
 Return size of the collection.
 
 isEmpty ()
 Return size of the collection.
 
 add (MobilePage $page)
 Adds a page to the collection.
 
 getIterator ()
 

Protected Attributes

 $pages = []
 

Detailed Description

A collection of pages, which are represented by the MobilePage class.

Member Function Documentation

◆ add()

MobileFrontend\Models\MobileCollection::add ( MobilePage $page)

Adds a page to the collection.

Parameters
MobilePage$pagePage to add

◆ count()

MobileFrontend\Models\MobileCollection::count ( )

Return size of the collection.

Returns
int

◆ getIterator()

MobileFrontend\Models\MobileCollection::getIterator ( )
Returns
ArrayIterator

◆ isEmpty()

MobileFrontend\Models\MobileCollection::isEmpty ( )

Return size of the collection.

Returns
bool

The documentation for this class was generated from the following file: