PHP Class app\http\controllers\TumblrController

Inheritance: extends Controller
Show file Open project: unicodeveloper/laravel-hackathon-starter

Protected Properties

Property Type Description
$tumblr object Instance of Tumblr API

Public Methods

Method Description
__construct ( ) Initialize the Controller with necessary arguments
getPage ( ) : mixed Return all data to the Tumblr API dashboard

Private Methods

Method Description
getBlogInfo ( $tumblrBlogUrl ) : array Get Basic Information about the blog
getPosts ( $tumblrBlogUrl ) : array Get Posts from the Tumblr blog

Method Details

__construct() public method

Initialize the Controller with necessary arguments
public __construct ( )

getPage() public method

Return all data to the Tumblr API dashboard
public getPage ( ) : mixed
return mixed

Property Details

$tumblr protected property

Instance of Tumblr API
protected object $tumblr
return object