src/CI_Base_Model.php
public function get_all()
    {
        $this->trigger('before_get');

        $this->apply_soft_delete_filter();

        $result = $this->_database->get($this->_table)
            ->{$this->_get_return_type_method(true)}();
        $this->_temporary_return_type = $this->return_type;

        $this->num_rows = count($result);

        foreach ($result as $key => &$row)
        {
            $row = $this->trigger('after_get', $row, ($key == count($result) - 1));
        }

        $this->_with = array();
        return $result;
    }
public function get_all()
    {
        $this->trigger('before_get');

        $this->apply_soft_delete_filter();

        $result = $this->_database->get($this->_table)
            ->{$this->_get_return_type_method(true)}();
        $this->_temporary_return_type = $this->return_type;

        $this->num_rows = count($result);

        foreach ($result as $key => &$row)
        {
            $row = $this->trigger('after_get', $row, ($key == count($result) - 1));
        }

        $this->_with = array();
        return $result;
    }
Fetch all the records in the table. Can be used as a generic call
to $this->_database->get() with scoped methods.