00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class Mage_Core_Model_Store extends Mage_Core_Model_Abstract
00036 {
00037 const XML_PATH_STORE_IN_URL = 'web/url/use_store';
00038 const XML_PATH_USE_REWRITES = 'web/seo/use_rewrites';
00039 const XML_PATH_UNSECURE_BASE_URL = 'web/unsecure/base_url';
00040 const XML_PATH_SECURE_BASE_URL = 'web/secure/base_url';
00041 const XML_PATH_SECURE_IN_FRONTEND = 'web/secure/use_in_frontend';
00042 const XML_PATH_SECURE_IN_ADMINHTML = 'web/secure/use_in_adminhtml';
00043
00044 const XML_PATH_PRICE_SCOPE = 'catalog/price/scope';
00045 const PRICE_SCOPE_GLOBAL = 0;
00046 const PRICE_SCOPE_WEBSITE = 1;
00047
00048 const URL_TYPE_LINK = 'link';
00049 const URL_TYPE_DIRECT_LINK = 'direct_link';
00050 const URL_TYPE_WEB = 'web';
00051 const URL_TYPE_SKIN = 'skin';
00052 const URL_TYPE_JS = 'js';
00053 const URL_TYPE_MEDIA = 'media';
00054
00055 const DEFAULT_CODE = 'default';
00056 const ADMIN_CODE = 'admin';
00057
00058 const CACHE_TAG = 'store';
00059
00060 protected $_cacheTag = true;
00061
00062
00063
00064
00065 protected $_eventPrefix = 'store';
00066
00067
00068
00069
00070 protected $_eventObject = 'store';
00071
00072 protected $_priceFilter;
00073
00074
00075
00076
00077
00078
00079 protected $_website;
00080
00081
00082
00083
00084
00085
00086 protected $_group;
00087
00088 protected $_configCache = null;
00089 protected $_configCacheBaseNodes = array();
00090
00091 protected $_dirCache = array();
00092
00093 protected $_urlCache = array();
00094
00095 protected $_baseUrlCache = array();
00096
00097 protected $_session;
00098
00099 protected $_isAdminSecure = null;
00100 protected $_isFrontSecure = null;
00101
00102
00103
00104
00105 private $_isReadOnly = false;
00106
00107 protected function _construct()
00108 {
00109 $this->_init('core/store');
00110 $this->_configCacheBaseNodes = array(
00111 self::XML_PATH_PRICE_SCOPE,
00112 self::XML_PATH_SECURE_BASE_URL,
00113 self::XML_PATH_SECURE_IN_ADMINHTML,
00114 self::XML_PATH_SECURE_IN_FRONTEND,
00115 self::XML_PATH_STORE_IN_URL,
00116 self::XML_PATH_UNSECURE_BASE_URL,
00117 self::XML_PATH_USE_REWRITES,
00118 'web/unsecure/base_link_url',
00119 'web/secure/base_link_url',
00120 'general/locale/code'
00121 );
00122 }
00123
00124
00125
00126
00127
00128
00129 protected function _getSession()
00130 {
00131 if (!$this->_session) {
00132 $this->_session = Mage::getModel('core/session')
00133 ->init('store_'.$this->getCode());
00134 }
00135 return $this->_session;
00136 }
00137
00138
00139
00140
00141
00142
00143
00144
00145 public function load($id, $field=null)
00146 {
00147 if (!is_numeric($id) && is_null($field)) {
00148 $this->_getResource()->load($this, $id, 'code');
00149 return $this;
00150 }
00151 return parent::load($id, $field);
00152 }
00153
00154
00155
00156
00157
00158
00159
00160 public function loadConfig($code)
00161 {
00162 if (is_numeric($code)) {
00163 foreach (Mage::getConfig()->getNode()->stores->children() as $storeCode=>$store) {
00164 if ((int)$store->system->store->id==$code) {
00165 $code = $storeCode;
00166 break;
00167 }
00168 }
00169 } else {
00170 $store = Mage::getConfig()->getNode()->stores->{$code};
00171 }
00172 if (!empty($store)) {
00173 $this->setCode($code);
00174 $id = (int)$store->system->store->id;
00175 $this->setId($id)->setStoreId($id);
00176 $this->setWebsiteId((int)$store->system->website->id);
00177 }
00178 return $this;
00179 }
00180
00181
00182
00183
00184
00185
00186 public function getCode()
00187 {
00188 return $this->_getData('code');
00189 }
00190
00191
00192
00193
00194
00195
00196
00197
00198 public function getConfig($path)
00199 {
00200 if (isset($this->_configCache[$path])) {
00201 return $this->_configCache[$path];
00202 }
00203
00204 $config = Mage::getConfig();
00205
00206 $fullPath = 'stores/'.$this->getCode().'/'.$path;
00207 $data = $config->getNode($fullPath);
00208 if (!$data && !Mage::isInstalled()) {
00209 $data = $config->getNode('default/' . $path);
00210 }
00211 if (!$data) {
00212 return null;
00213 }
00214 return $this->_processConfigValue($fullPath, $path, $data);
00215 }
00216
00217
00218
00219
00220
00221
00222
00223 public function initConfigCache()
00224 {
00225
00226
00227
00228
00229 if ($this->_configCache === null) {
00230 $code = $this->getCode();
00231 if ($code) {
00232 if (Mage::app()->useCache('config')) {
00233 $cacheId = 'store_' . $code . '_config_cache';
00234 $data = Mage::app()->loadCache($cacheId);
00235 if ($data) {
00236 $data = unserialize($data);
00237 } else {
00238 $data = array();
00239 foreach ($this->_configCacheBaseNodes as $node) {
00240 $data[$node] = $this->getConfig($node);
00241 }
00242 Mage::app()->saveCache(
00243 serialize($data),
00244 $cacheId,
00245 array(self::CACHE_TAG, Mage_Core_Model_Config::CACHE_TAG)
00246 );
00247 }
00248 $this->_configCache = $data;
00249 }
00250 }
00251 }
00252 return $this;
00253 }
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263 public function setConfig($path, $value)
00264 {
00265 if (isset($this->_configCache[$path])) {
00266 $this->_configCache[$path] = $value;
00267 }
00268 $fullPath = 'stores/'.$this->getCode().'/'.$path;
00269 Mage::getConfig()->setNode($fullPath, $value);
00270
00271 return $this;
00272 }
00273
00274
00275
00276
00277
00278
00279 public function setWebsite(Mage_Core_Model_Website $website)
00280 {
00281 $this->_website = $website;
00282 }
00283
00284
00285
00286
00287
00288
00289 public function getWebsite()
00290 {
00291 if (is_null($this->getWebsiteId())) {
00292 return false;
00293 }
00294 if (is_null($this->_website)) {
00295 $this->_website = Mage::app()->getWebsite($this->getWebsiteId());
00296 }
00297 return $this->_website;
00298 }
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308 protected function _processConfigValue($fullPath, $path, $node)
00309 {
00310 if (isset($this->_configCache[$path])) {
00311 return $this->_configCache[$path];
00312 }
00313
00314 if ($node->hasChildren()) {
00315 $aValue = array();
00316 foreach ($node->children() as $k=>$v) {
00317 $aValue[$k] = $this->_processConfigValue($fullPath.'/'.$k, $path.'/'.$k, $v);
00318 }
00319 $this->_configCache[$path] = $aValue;
00320 return $aValue;
00321 }
00322
00323 $sValue = (string)$node;
00324 if (!empty($node['backend_model']) && !empty($sValue)) {
00325 $backend = Mage::getModel((string)$node['backend_model']);
00326 $backend->setPath($path)->setValue($sValue)->afterLoad();
00327 $sValue = $backend->getValue();
00328 }
00329
00330 if (is_string($sValue) && strpos($sValue, '{{')!==false) {
00331 if (strpos($sValue, '{{unsecure_base_url}}')!==false) {
00332 $unsecureBaseUrl = $this->getConfig('web/unsecure/base_url');
00333 $sValue = str_replace('{{unsecure_base_url}}', $unsecureBaseUrl, $sValue);
00334 } elseif (strpos($sValue, '{{secure_base_url}}')!==false) {
00335 $secureBaseUrl = $this->getConfig('web/secure/base_url');
00336 $sValue = str_replace('{{secure_base_url}}', $secureBaseUrl, $sValue);
00337 } else {
00338 $sValue = Mage::getConfig()->substDistroServerVars($sValue);
00339 }
00340 }
00341
00342 $this->_configCache[$path] = $sValue;
00343
00344 return $sValue;
00345 }
00346
00347
00348
00349
00350
00351
00352
00353
00354 public function processSubst($value)
00355 {
00356 if (!is_string($value)) {
00357 return $value;
00358 }
00359
00360 if (strpos($value, '{{unsecure_base_url}}')!==false) {
00361 $unsecureBaseUrl = $this->getConfig('web/unsecure/base_url');
00362 $value = str_replace('{{unsecure_base_url}}', $unsecureBaseUrl, $value);
00363
00364 } elseif (strpos($value, '{{secure_base_url}}')!==false) {
00365 $secureBaseUrl = $this->getConfig('web/secure/base_url');
00366 $value = str_replace('{{secure_base_url}}', $secureBaseUrl, $value);
00367 } elseif (strpos($value, '{{')!==false) {
00368 $value = Mage::getConfig()->substDistroServerVars($value);
00369 }
00370 return $value;
00371 }
00372
00373 public function getDefaultBasePath()
00374 {
00375 if (!isset($_SERVER['SCRIPT_NAME'])) {
00376 return '/';
00377 }
00378 return rtrim(Mage::app()->getRequest()->getBasePath().'/').'/';
00379 }
00380
00381
00382
00383
00384
00385
00386
00387
00388 public function getUrl($route='', $params=array())
00389 {
00390 $url = Mage::getModel('core/url')
00391 ->setStore($this);
00392 return $url->getUrl($route, $params);
00393 }
00394
00395 public function getBaseUrl($type=self::URL_TYPE_LINK, $secure=null)
00396 {
00397 $cacheKey = $type.'/'.(is_null($secure) ? 'null' : ($secure ? 'true' : 'false'));
00398 if (!isset($this->_baseUrlCache[$cacheKey])) {
00399 switch ($type) {
00400 case self::URL_TYPE_WEB:
00401 $secure = is_null($secure) ? $this->isCurrentlySecure() : (bool)$secure;
00402 $url = $this->getConfig('web/'.($secure ? 'secure' : 'unsecure').'/base_url');
00403 break;
00404
00405 case self::URL_TYPE_LINK:
00406 $secure = (bool)$secure;
00407 $url = $this->getConfig('web/'.($secure ? 'secure' : 'unsecure').'/base_link_url');
00408 $url = $this->_updatePathUseRewrites($url);
00409 $url = $this->_updatePathUseStoreView($url);
00410 break;
00411
00412 case self::URL_TYPE_DIRECT_LINK:
00413 $secure = (bool)$secure;
00414 $url = $this->getConfig('web/'.($secure ? 'secure' : 'unsecure').'/base_link_url');
00415 $url = $this->_updatePathUseRewrites($url);
00416 break;
00417
00418 case self::URL_TYPE_SKIN:
00419 case self::URL_TYPE_MEDIA:
00420 case self::URL_TYPE_JS:
00421 $secure = is_null($secure) ? $this->isCurrentlySecure() : (bool)$secure;
00422 $url = $this->getConfig('web/'.($secure ? 'secure' : 'unsecure').'/base_'.$type.'_url');
00423 break;
00424
00425 default:
00426 throw Mage::exception('Mage_Core', Mage::helper('core')->__('Invalid base url type'));
00427 }
00428
00429 $this->_baseUrlCache[$cacheKey] = rtrim($url, '/').'/';
00430 }
00431
00432 return $this->_baseUrlCache[$cacheKey];
00433 }
00434
00435
00436
00437
00438
00439
00440
00441 protected function _updatePathUseRewrites($url)
00442 {
00443 if ($this->isAdmin()
00444 || !$this->getConfig(self::XML_PATH_USE_REWRITES)
00445 || !Mage::isInstalled()) {
00446 $url .= basename($_SERVER['SCRIPT_FILENAME']).'/';
00447 }
00448 return $url;
00449 }
00450
00451
00452
00453
00454
00455
00456
00457 protected function _updatePathUseStoreView($url)
00458 {
00459 if (Mage::isInstalled() && $this->getConfig(self::XML_PATH_STORE_IN_URL)) {
00460 $url .= $this->getCode().'/';
00461 }
00462 return $url;
00463 }
00464
00465
00466
00467
00468
00469
00470 public function getId()
00471 {
00472 return $this->_getData('store_id');
00473 }
00474
00475
00476
00477
00478
00479
00480 public function isAdmin()
00481 {
00482 return $this->getId() == Mage_Core_Model_App::ADMIN_STORE_ID;
00483 }
00484
00485
00486 public function isAdminUrlSecure()
00487 {
00488 if ($this->_isAdminSecure === null) {
00489 $this->_isAdminSecure = Mage::getStoreConfigFlag(
00490 Mage_Core_Model_Url::XML_PATH_SECURE_IN_ADMIN,
00491 $this->getId()
00492 );
00493 }
00494 return $this->_isAdminSecure;
00495 }
00496
00497 public function isFrontUrlSecure()
00498 {
00499 if ($this->_isFrontSecure === null) {
00500 $this->_isFrontSecure = Mage::getStoreConfigFlag(
00501 Mage_Core_Model_Url::XML_PATH_SECURE_IN_FRONT,
00502 $this->getId()
00503 );
00504 }
00505 return $this->_isFrontSecure;
00506 }
00507
00508 public function isCurrentlySecure()
00509 {
00510 if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
00511 return true;
00512 }
00513
00514 if (Mage::isInstalled()) {
00515 $secureBaseUrl = Mage::getStoreConfig('web/secure/base_route_url');
00516 if (!$secureBaseUrl) {
00517 return false;
00518 }
00519 $uri = Zend_Uri::factory($secureBaseUrl);
00520 $isSecure = ($uri->getScheme() == 'https' )
00521 && isset($_SERVER['SERVER_PORT'])
00522 && ($uri->getPort() == $_SERVER['SERVER_PORT']);
00523 return $isSecure;
00524 } else {
00525 $isSecure = isset($_SERVER['SERVER_PORT']) && (443 == $_SERVER['SERVER_PORT']);
00526 return $isSecure;
00527 }
00528 }
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539 public function getBaseCurrencyCode()
00540 {
00541 if ($this->getConfig(Mage_Core_Model_Store::XML_PATH_PRICE_SCOPE) == Mage_Core_Model_Store::PRICE_SCOPE_GLOBAL) {
00542 return Mage::app()->getBaseCurrencyCode();
00543 } else {
00544 return $this->getConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);
00545 }
00546 }
00547
00548
00549
00550
00551
00552
00553 public function getBaseCurrency()
00554 {
00555 $currency = $this->getData('base_currency');
00556 if (is_null($currency)) {
00557 $currency = Mage::getModel('directory/currency')->load($this->getBaseCurrencyCode());
00558 $this->setData('base_currency', $currency);
00559 }
00560 return $currency;
00561 }
00562
00563
00564
00565
00566
00567
00568 public function getDefaultCurrencyCode()
00569 {
00570 $result = $this->getConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_DEFAULT);
00571 return $result;
00572 }
00573
00574
00575
00576
00577
00578
00579 public function getDefaultCurrency()
00580 {
00581 $currency = $this->getData('default_currency');
00582 if (is_null($currency)) {
00583 $currency = Mage::getModel('directory/currency')->load($this->getDefaultCurrencyCode());
00584 $this->setData('default_currency', $currency);
00585 }
00586 return $currency;
00587 }
00588
00589
00590
00591
00592
00593
00594
00595 public function setCurrentCurrencyCode($code)
00596 {
00597 $code = strtoupper($code);
00598 if (in_array($code, $this->getAvailableCurrencyCodes())) {
00599 $this->_getSession()->setCurrencyCode($code);
00600 }
00601 return $this;
00602 }
00603
00604
00605
00606
00607
00608
00609 public function getCurrentCurrencyCode()
00610 {
00611
00612 $code = $this->_getSession()->getCurrencyCode();
00613 if (empty($code)) {
00614 $code = $this->getDefaultCurrencyCode();
00615 }
00616 if (in_array($code, $this->getAvailableCurrencyCodes(true))) {
00617 return $code;
00618 }
00619
00620
00621 $codes = array_values($this->getAvailableCurrencyCodes(true));
00622 if (empty($codes)) {
00623
00624 return $this->getDefaultCurrencyCode();
00625 }
00626 return array_shift($codes);
00627 }
00628
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638 public function getAvailableCurrencyCodes($skipBaseNotAllowed = false)
00639 {
00640 $codes = $this->getData('available_currency_codes');
00641 if (is_null($codes)) {
00642 $codes = explode(',', $this->getConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_ALLOW));
00643
00644 $baseCurrencyCode = $this->getBaseCurrencyCode();
00645 if (!in_array($baseCurrencyCode, $codes)) {
00646 $codes[] = $baseCurrencyCode;
00647
00648
00649 $disallowedBaseCodeIndex = array_keys($codes);
00650 $disallowedBaseCodeIndex = array_pop($disallowedBaseCodeIndex);
00651 $this->setData('disallowed_base_currency_code_index', $disallowedBaseCodeIndex);
00652 }
00653 $this->setData('available_currency_codes', $codes);
00654 }
00655
00656
00657 if ($skipBaseNotAllowed) {
00658 $disallowedBaseCodeIndex = $this->getData('disallowed_base_currency_code_index');
00659 if (null !== $disallowedBaseCodeIndex) {
00660 unset($codes[$disallowedBaseCodeIndex]);
00661 }
00662 }
00663 return $codes;
00664 }
00665
00666
00667
00668
00669
00670
00671 public function getCurrentCurrency()
00672 {
00673 $currency = $this->getData('current_currency');
00674 if (is_null($currency)) {
00675 $currency = Mage::getModel('directory/currency')->load($this->getCurrentCurrencyCode());
00676 if ($this->getBaseCurrency()->getRate($currency)) {
00677 $this->setData('current_currency', $currency);
00678 }
00679 else {
00680 $this->setData('current_currency', $this->getBaseCurrency());
00681 $this->setCurrentCurrencyCode($this->getBaseCurrency()->getCode());
00682 }
00683 }
00684 return $currency;
00685 }
00686
00687 public function getCurrentCurrencyRate()
00688 {
00689 return $this->getBaseCurrency()->getRate($this->getCurrentCurrency());
00690 }
00691
00692
00693
00694
00695
00696
00697
00698
00699
00700 public function convertPrice($price, $format=false, $includeContainer = true)
00701 {
00702 if ($this->getCurrentCurrency() && $this->getBaseCurrency()) {
00703 $value = $this->getBaseCurrency()->convert($price, $this->getCurrentCurrency());
00704 } else {
00705 $value = $price;
00706 }
00707 $value = $this->roundPrice($value);
00708
00709 if ($this->getCurrentCurrency() && $format) {
00710 $value = $this->formatPrice($value, $includeContainer);
00711 }
00712 return $value;
00713 }
00714
00715
00716
00717
00718
00719
00720
00721 public function roundPrice($price)
00722 {
00723 return round($price, 2);
00724 }
00725
00726
00727
00728
00729
00730
00731
00732
00733 public function formatPrice($price, $includeContainer = true)
00734 {
00735 if ($this->getCurrentCurrency()) {
00736 return $this->getCurrentCurrency()->format($price, array(), $includeContainer);
00737 }
00738 return $price;
00739 }
00740
00741
00742
00743
00744
00745
00746 public function getPriceFilter()
00747 {
00748 if (!$this->_priceFilter) {
00749 if ($this->getBaseCurrency() && $this->getCurrentCurrency()) {
00750 $this->_priceFilter = $this->getCurrentCurrency()->getFilter();
00751 $this->_priceFilter->setRate($this->getBaseCurrency()->getRate($this->getCurrentCurrency()));
00752 }
00753 elseif($this->getDefaultCurrency()) {
00754 $this->_priceFilter = $this->getDefaultCurrency()->getFilter();
00755 }
00756 else {
00757 $this->_priceFilter = new Varien_Filter_Sprintf('%s', 2);
00758 }
00759 }
00760 return $this->_priceFilter;
00761 }
00762
00763
00764
00765
00766
00767
00768 public function getRootCategoryId()
00769 {
00770 if (!$this->getGroup()) {
00771 return 0;
00772 }
00773 return $this->getGroup()->getRootCategoryId();
00774 }
00775
00776
00777
00778
00779
00780
00781 public function setGroup($group)
00782 {
00783 $this->_group = $group;
00784 }
00785
00786
00787
00788
00789
00790
00791 public function getGroup()
00792 {
00793 if (is_null($this->getGroupId())) {
00794 return false;
00795 }
00796 if (is_null($this->_group)) {
00797 $this->_group = Mage::getModel('core/store_group')->load($this->getGroupId());
00798 }
00799 return $this->_group;
00800 }
00801
00802 public function getWebsiteId()
00803 {
00804 return $this->_getData('website_id');
00805 }
00806
00807 public function getGroupId()
00808 {
00809 return $this->_getData('group_id');
00810 }
00811
00812 public function getDefaultGroupId()
00813 {
00814 return $this->_getData('default_group_id');
00815 }
00816
00817 public function isCanDelete()
00818 {
00819 if (!$this->getId()) {
00820 return false;
00821 }
00822
00823 return $this->getGroup()->getDefaultStoreId() != $this->getId();
00824 }
00825
00826
00827
00828
00829
00830
00831
00832 public function getCurrentUrl($fromStore = true)
00833 {
00834 $query = Mage::getSingleton('core/url')->escape(ltrim(Mage::app()->getRequest()->getRequestString(), '/'));
00835
00836 if (Mage::app()->getStore()->isCurrentlySecure()) {
00837 $parsedUrl = parse_url($this->getUrl('', array('_secure' => true)));
00838 } else {
00839 $parsedUrl = parse_url($this->getUrl(''));
00840 }
00841 $parsedQuery = array();
00842 if (isset($parsedUrl['query'])) {
00843 parse_str($parsedUrl['query'], $parsedQuery);
00844 }
00845
00846 foreach (Mage::app()->getRequest()->getQuery() as $k => $v) {
00847 $parsedQuery[$k] = $v;
00848 }
00849
00850 if (!Mage::getStoreConfigFlag(Mage_Core_Model_Store::XML_PATH_STORE_IN_URL, $this->getCode())) {
00851 $parsedQuery['___store'] = $this->getCode();
00852 }
00853 if ($fromStore !== false) {
00854 $parsedQuery['___from_store'] = $fromStore === true ? Mage::app()->getStore()->getCode() : $fromStore;
00855 }
00856
00857 return $parsedUrl['scheme'] . '://' . $parsedUrl['host']
00858 . (isset($parsedUrl['port']) ? ':' . $parsedUrl['port'] : '')
00859 . $parsedUrl['path'] . $query
00860 . ($parsedQuery ? '?'.http_build_query($parsedQuery, '', '&') : '');
00861 }
00862
00863 public function getIsActive()
00864 {
00865 return $this->_getData('is_active');
00866 }
00867
00868 public function getName()
00869 {
00870 return $this->_getData('name');
00871 }
00872
00873 protected function _beforeDelete()
00874 {
00875 $this->_protectFromNonAdmin();
00876 return parent::_beforeDelete();
00877 }
00878
00879
00880
00881
00882
00883
00884 protected function _afterDelte()
00885 {
00886 parent::_afterDelte();
00887 Mage::getConfig()->removeCache();
00888 return $this;
00889 }
00890
00891
00892
00893
00894
00895
00896 public function resetConfig()
00897 {
00898 Mage::getConfig()->reinit();
00899 $this->_dirCache = array();
00900 $this->_configCache = array();
00901 $this->_baseUrlCache = array();
00902 $this->_urlCache = array();
00903
00904 return $this;
00905 }
00906
00907
00908
00909
00910
00911
00912
00913 public function isReadOnly($value = null)
00914 {
00915 if (null !== $value) {
00916 $this->_isReadOnly = (bool)$value;
00917 }
00918 return $this->_isReadOnly;
00919 }
00920 }