src/Intraface/XMLRPC/Shop/Server0004.php 1 location
|
@@ 506-517 (lines=12) @@
|
| 503 |
|
* @return array with categories |
| 504 |
|
* |
| 505 |
|
*/ |
| 506 |
|
public function getProductCategories($credentials, $shop_id) |
| 507 |
|
{ |
| 508 |
|
if (is_object($return = $this->checkCredentials($credentials))) { |
| 509 |
|
return $return; |
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
$this->_factoryWebshop($shop_id); |
| 513 |
|
$category = new Intraface_Category( |
| 514 |
|
$this->kernel, |
| 515 |
|
MDB2::singleton(DB_DSN), |
| 516 |
|
new Intraface_Category_Type('shop', $shop_id) |
| 517 |
|
); |
| 518 |
|
|
| 519 |
|
return $this->prepareResponseData($category->getAllCategories()); |
| 520 |
|
} |
src/Intraface/XMLRPC/Shop/Server0100.php 1 location
|
@@ 671-682 (lines=12) @@
|
| 668 |
|
* @return array with categories |
| 669 |
|
* |
| 670 |
|
*/ |
| 671 |
|
public function getProductCategories($credentials, $shop_id) |
| 672 |
|
{ |
| 673 |
|
if (is_object($return = $this->checkCredentials($credentials))) { |
| 674 |
|
return $return; |
| 675 |
|
} |
| 676 |
|
|
| 677 |
|
$this->_factoryWebshop($shop_id); |
| 678 |
|
$category = new Intraface_Category( |
| 679 |
|
$this->kernel, |
| 680 |
|
MDB2::singleton(DB_DSN), |
| 681 |
|
new Intraface_Category_Type('shop', $shop_id) |
| 682 |
|
); |
| 683 |
|
|
| 684 |
|
return $this->prepareResponseData($category->getAllCategories()); |
| 685 |
|
} |
src/Intraface/XMLRPC/Shop/Server2.php 1 location
|
@@ 308-319 (lines=12) @@
|
| 305 |
|
* @return array with categories |
| 306 |
|
* |
| 307 |
|
*/ |
| 308 |
|
public function getProductCategories($credentials, $shop_id) |
| 309 |
|
{ |
| 310 |
|
if (is_object($return = $this->checkCredentials($credentials))) { |
| 311 |
|
return $return; |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
$this->_factoryWebshop($shop_id); |
| 315 |
|
$category = new Intraface_Category( |
| 316 |
|
$this->kernel, |
| 317 |
|
MDB2::singleton(DB_DSN), |
| 318 |
|
new Intraface_Category_Type('shop', $shop_id) |
| 319 |
|
); |
| 320 |
|
|
| 321 |
|
return $this->prepareResponseData($category->getAllCategories()); |
| 322 |
|
} |