phpDocumentor

CustomerCountryReader
in package
implements CustomerCountryReaderInterface

Class CustomerCountryReader

This class is used for reading customer country data from the database

Tags
category

System

subpackage

Country

implements

CustomerCountryReaderInterface

Interfaces, Classes and Traits

CustomerCountryReaderInterface
Interface CustomerCountryReaderInterface

Table of Contents

$customerFactory  : AbstractCustomerFactory
$db  : CI_DB_query_builder
__construct()  : mixed
Constructor of the class CustomerCountryReader
findById()  : CustomerCountry|null
Method to find a country with a given ID if it exists else it will return null
findByIso2()  : CustomerCountry|null
Method to find a country with a given iso2 code if it exists else it will return null
findByName()  : CustomerCountry|null
Method to find a country with a given name if it exists else it will return null
getAll()  : CustomerCountryCollection
Method to get all countries
isStateMandatory()  : bool
This method returns whether the specified country, necessary, needs a state.
_getCountryByArray()  : CustomerCountry

Properties

Methods

isStateMandatory()

This method returns whether the specified country, necessary, needs a state.

public isStateMandatory(IdType $countryId) : bool
Parameters
$countryId : IdType
Return values
bool

Search results