/** * Delete the row and the object. * * @return bool */ public function destroy() { if (!$this->row_id) { return false; } $options = ['row_id' => $this->row_id]; ColrowClient::_request('POST', $options); return true; }
public function find() { $options = $this->_getOptions(); if (isset($options['where'])) { $options['where'] = json_encode($options['where']); } $response = ColrowClient::_request('GET', $options); return ColrowObject::_createObjectsFromFeeds($response['result']['feeds']); }