/** * Create the object from the entry feed. * * @param array $feed Each feed of entry feeds. * * @return ColrowObject */ public static function _createObjectFromFeed($feed) { $object = new ColrowObject($feed['row_id']); $object->_setAll($feed['data']); return $object; }
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']); }