Addresses_model::getCount PHP Метод

getCount() публичный Метод

public getCount ( $filter = [] )
    public function getCount($filter = array())
    {
        if (!empty($filter['customer_id']) and is_numeric($filter['customer_id'])) {
            $this->db->where('customer_id', $filter['customer_id']);
            $this->db->from('addresses');
            return $this->db->count_all_results();
        }
    }