ActiveResource\ActiveResource::put PHP Метод

put() публичный метод

PUT /collection/id/method.xml
public put ( $method, $options = [], $options_as_xml = false, $start_tag = false )
    public function put($method, $options = array(), $options_as_xml = false, $start_tag = false)
    {
        $req = $this->site . $this->element_name_plural;
        if (isset($this->_data['id']) && $this->_data['id']) {
            $req .= '/' . $this->_data['id'];
        }
        $req .= '/' . $method . '.xml';
        if ($options_as_xml) {
            return $this->_send_and_receive($req, 'PUT', $options, $start_tag);
        }
        if (count($options) > 0) {
            $req .= '?' . http_build_query($options);
        }
        return $this->_send_and_receive($req, 'PUT');
    }