Exemplo n.º 1
0
 /**
  * sets the link to the request used to give this response
  * this will end up in response.links.self and response.data.links.self
  * this overrides the jsonapi\response->set_self_link() which only adds it to response.links.self
  * 
  * @see jsonapi\response->set_self_link()
  * 
  * by default this is already set using $_SERVER variables
  * use this method to override this default behavior
  * @see jsonapi\response::__construct()
  * 
  * @param  string $link
  * @return void
  */
 public function set_self_link($link)
 {
     parent::set_self_link($link);
     $this->add_link($key = 'self', $link);
 }