/** * Manually updates field with new video stats * @param [type] $column [description] * @param [type] $entry_id [description] * @param [type] $youtube_id [description] * @return [type] [description] */ private function _save_field_data($column, $entry_id, $youtube_id) { // stats cache has expired, update the values for the field $y = new Youtube($this->settings['api_key'], $youtube_id); list($views) = $y->stats(); list($title, $since) = $y->snippet(); // save the field $data = implode('|', array($youtube_id, date('U'), $title, $views, $since)); $val = array($column => $data); return ee()->db->where('entry_id', $entry_id)->update('channel_data', $val); }