MobileFrontend
MobileoptimisedfrontendforMediaWiki
MobileFrontend\ContentProviders\McsContentProvider Class Reference

Sources content from the Mobile-Content-Service This requires allow_url_fopen to be set. More...

+ Inheritance diagram for MobileFrontend\ContentProviders\McsContentProvider:
+ Collaboration diagram for MobileFrontend\ContentProviders\McsContentProvider:

Public Member Functions

 __construct ( $baseUrl, OutputPage $out)
 
 getHTML ()
 @inheritDoc
 

Protected Member Functions

 buildHtmlFromResponse (array $json)
 
 fileGetContents ( $url)
 

Detailed Description

Sources content from the Mobile-Content-Service This requires allow_url_fopen to be set.

Since

Constructor & Destructor Documentation

◆ __construct()

MobileFrontend\ContentProviders\McsContentProvider::__construct (   $baseUrl,
OutputPage  $out 
)
Parameters
string$baseUrlfor the MediaWiki API to be used minus query string e.g. /w/api.php
OutputPage$out

Member Function Documentation

◆ buildHtmlFromResponse()

MobileFrontend\ContentProviders\McsContentProvider::buildHtmlFromResponse ( array  $json)
protected
Parameters
array$jsonresponse
Returns
string

◆ fileGetContents()

MobileFrontend\ContentProviders\McsContentProvider::fileGetContents (   $url)
protected
Parameters
string$urlURL to fetch the content
Returns
string

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