dc-rest/inc/class.rest.query.get.blogs.php

18 lines
360 B
PHP
Raw Normal View History

2017-04-30 17:38:07 +02:00
<?php
2017-05-01 22:05:03 +02:00
class RestQueryGetBlogs extends RestQuery
2017-04-30 17:38:07 +02:00
{
2017-05-01 00:51:42 +02:00
public function __construct($user){
if($user === false){
//need To be authentified
$this->response_code = 403;
$this->response_message = array('code' => 403, 'error' => 'get Blogs methods requires to be authentified');
return;
}
//error_log(json_encode($user->findUserBlog()));
2017-04-30 17:38:07 +02:00
}
}