|
@@ 436-450 (lines=15) @@
|
| 433 |
|
* @return integer The tax class ID |
| 434 |
|
* @throws \Exception Is thrown, if the tax class with the requested name is not available |
| 435 |
|
*/ |
| 436 |
|
public function getTaxClassIdByTaxClassName($taxClassName) |
| 437 |
|
{ |
| 438 |
|
|
| 439 |
|
// query whether or not, the requested tax class is available |
| 440 |
|
if (isset($this->taxClasses[$taxClassName])) { |
| 441 |
|
return (integer) $this->taxClasses[$taxClassName][MemberNames::CLASS_ID]; |
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
// throw an exception, if not |
| 445 |
|
throw new \Exception( |
| 446 |
|
$this->appendExceptionSuffix( |
| 447 |
|
sprintf('Found invalid tax class name %s', $taxClassName) |
| 448 |
|
) |
| 449 |
|
); |
| 450 |
|
} |
| 451 |
|
|
| 452 |
|
/** |
| 453 |
|
* Return's the store website for the passed code. |
|
@@ 460-474 (lines=15) @@
|
| 457 |
|
* @return integer The store website ID |
| 458 |
|
* @throws \Exception Is thrown, if the store website with the requested code is not available |
| 459 |
|
*/ |
| 460 |
|
public function getStoreWebsiteIdByCode($code) |
| 461 |
|
{ |
| 462 |
|
|
| 463 |
|
// query whether or not, the requested store website is available |
| 464 |
|
if (isset($this->storeWebsites[$code])) { |
| 465 |
|
return (integer) $this->storeWebsites[$code][MemberNames::WEBSITE_ID]; |
| 466 |
|
} |
| 467 |
|
|
| 468 |
|
// throw an exception, if not |
| 469 |
|
throw new \Exception( |
| 470 |
|
$this->appendExceptionSuffix( |
| 471 |
|
sprintf('Found invalid website code %s', $code) |
| 472 |
|
) |
| 473 |
|
); |
| 474 |
|
} |
| 475 |
|
|
| 476 |
|
/** |
| 477 |
|
* Return's the category with the passed path. |