account_user.php

Go to the documentation of this file.
00001 <?php
00002 
00011 class Account_User extends Account
00012 {
00013 
00019     protected $_sThisTemplate = 'page/account/user.tpl';
00020 
00028     public function render()
00029     {
00030 
00031         parent::render();
00032 
00033         // is logged in ?
00034         if (!($this->getUser())) {
00035             return $this->_sThisTemplate = $this->_sThisLoginTemplate;
00036         }
00037 
00038         return $this->_sThisTemplate;
00039     }
00040 
00046     public function showShipAddress()
00047     {
00048         return oxRegistry::getSession()->getVariable('blshowshipaddress');
00049     }
00050 
00056     public function getBreadCrumb()
00057     {
00058         $aPaths = array();
00059         $aPath = array();
00060 
00061         $iBaseLanguage = oxRegistry::getLang()->getBaseLanguage();
00062         $sSelfLink = $this->getViewConfig()->getSelfLink();
00063 
00064         $aPath['title'] = oxRegistry::getLang()->translateString('MY_ACCOUNT', $iBaseLanguage, false);
00065         $aPath['link'] = oxRegistry::get("oxSeoEncoder")->getStaticUrl($sSelfLink . 'cl=account');
00066         $aPaths[] = $aPath;
00067 
00068         $aPath['title'] = oxRegistry::getLang()->translateString('BILLING_SHIPPING_SETTINGS', $iBaseLanguage, false);
00069         $aPath['link'] = $this->getLink();
00070         $aPaths[] = $aPath;
00071 
00072         return $aPaths;
00073     }
00074 }