Tutorial Extension  1.0.0
SellerDeck Extensions - Tutorial Extension
Public Member Functions | Protected Attributes | List of all members
CCatalogWrapper Class Reference

Public Member Functions

 __construct (\SDExtension\DB\CDataBase $oDB)
 
 ListCountries ()
 

Protected Attributes

 $m_oDB = null
 

Detailed Description

Definition at line 16 of file CCatalogWrapper.php.

Constructor & Destructor Documentation

__construct ( \SDExtension\DB\CDataBase  $oDB)

__construct - Object constructor method

public

Parameters
object$oDBDataBase Object
Returns
void

Definition at line 31 of file CCatalogWrapper.php.

32  {
33  $this->m_oDB = $oDB;
34  }

Member Function Documentation

ListCountries ( )

ListCountries - Lists Countries

public

Returns
GeneratorObject

Definition at line 42 of file CCatalogWrapper.php.

43  {
44  foreach ($this->m_oDB->Select('countries') as $row)
45  {
46  yield $row;
47  }
48  }

The documentation for this class was generated from the following file: