1 | <?php |
||
11 | class TumblrController extends Controller |
||
12 | { |
||
13 | /** |
||
14 | * Instance of Tumblr API |
||
15 | * @var object |
||
16 | */ |
||
17 | protected $tumblr; |
||
18 | |||
19 | /** |
||
20 | * Initialize the Controller with necessary arguments |
||
21 | */ |
||
22 | public function __construct() |
||
29 | |||
30 | /** |
||
31 | * Get Basic Information about the blog |
||
32 | * @return array |
||
33 | */ |
||
34 | private function getBlogInfo($tumblrBlogUrl) |
||
40 | |||
41 | /** |
||
42 | * Get Posts from the Tumblr blog |
||
43 | * @return array |
||
44 | */ |
||
45 | private function getPosts($tumblrBlogUrl) |
||
51 | |||
52 | /** |
||
53 | * Return all data to the Tumblr API dashboard |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function getPage() |
||
62 | } |
||
63 |