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

21 lines
403 B
PHP
Raw Normal View History

2017-04-30 17:38:07 +02:00
<?php
class RestQueryGetBlogs
{
2017-05-01 00:51:42 +02:00
public $response_code;
public $response_message; //array
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
}
}