Tutorial Extension
1.0.0
SellerDeck Extensions - Tutorial Extension
Main Page
Related Pages
Namespaces
Classes
Files
File List
tutorial_source
framework
classes
database
wrapper
CCatalogWrapper.php
1
<?php
2
3
/**
4
* CCatalogWrapper.php - Implementation file for Catalog Wrapper class.
5
*
6
* Contains useful functions
7
*
8
* @package SellerDeck Extensions
9
*
10
* @author Péter Erdődi
11
* @copyright © SellerDeck Ltd 2015. All rights reserved.
12
*/
13
14
namespace
SDExtension\DB\Wrapper
;
15
16
class
CCatalogWrapper
17
{
18
19
/**
20
* @var object DataBase Object
21
*/
22
protected
$m_oDB = null;
23
24
/**
25
* __construct - Object constructor method
26
*
27
* @access public
28
* @param object $oDB DataBase Object
29
* @return void
30
*/
31
public
function
__construct
(\
SDExtension
\DB\
CDataBase
$oDB)
32
{
33
$this->m_oDB = $oDB;
34
}
35
36
/**
37
* ListCountries - Lists Countries
38
*
39
* @access public
40
* @return GeneratorObject
41
*/
42
public
function
ListCountries
()
43
{
44
foreach
($this->m_oDB->Select(
'countries'
) as $row)
45
{
46
yield $row;
47
}
48
}
49
50
}
SDExtension\DB\Wrapper\CCatalogWrapper\ListCountries
ListCountries()
Definition:
CCatalogWrapper.php:42
SDExtension\DB\Wrapper\CCatalogWrapper\__construct
__construct(\SDExtension\DB\CDataBase $oDB)
Definition:
CCatalogWrapper.php:31
SDExtension\DB\Wrapper
Definition:
CCatalogWrapper.php:14
SDExtension\DB\Wrapper\CCatalogWrapper
Definition:
CCatalogWrapper.php:16
SDExtension
Definition:
CConfig.php:12
SDExtension\DB\CDataBase
Definition:
CDataBase.php:14
Generated on Thu Sep 22 2016 08:10:25 for Tutorial Extension by
1.8.10