public function selectValues($sql, $arg1 = null, $arg2 = null)
{
$result = $this->selectAll($sql, $arg1, $arg2);
$values = array();
foreach ($result as $row) {
$values[] = next($row);
}
return $values;
}
protected function _getStoryIdsByChannel($channel_id) { $sql = 'SELECT story_id as id FROM jonah_stories ' . 'WHERE channel_id = ?'; try { return $this->_db->selectValues($sql, array($channel_id)); } catch (Horde_Db_Exception $e) { throw new Jonah_Exception($e); } }