1 | <?php |
||
8 | class TumblrController extends Controller |
||
9 | { |
||
10 | /** |
||
11 | * Instance of Tumblr API |
||
12 | * @var object |
||
13 | */ |
||
14 | protected $tumblr; |
||
15 | |||
16 | /** |
||
17 | * Initialize the Controller with necessary arguments |
||
18 | */ |
||
19 | public function __construct() |
||
26 | |||
27 | /** |
||
28 | * Get Basic Information about the blog |
||
29 | * @return array |
||
30 | */ |
||
31 | private function getBlogInfo($tumblrBlogUrl) |
||
37 | |||
38 | /** |
||
39 | * Get Posts from the Tumblr blog |
||
40 | * @return array |
||
41 | */ |
||
42 | private function getPosts($tumblrBlogUrl) |
||
48 | |||
49 | /** |
||
50 | * Return all data to the Tumblr API dashboard |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function getPage() |
||
59 | } |
||
60 |