dc-rest/inc/class.rest.query.get.blogs.php
2017-05-01 00:51:42 +02:00

21 lines
403 B
PHP

<?php
class RestQueryGetBlogs
{
public $response_code;
public $response_message; //array
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()));
}
}