account_user.php

Go to the documentation of this file.
00001 <?php
00002 
00011 class Account_User extends Account
00012 {
00018     protected $_sThisTemplate = 'page/account/user.tpl';
00019 
00027     public function render()
00028     {
00029 
00030         parent::render();
00031 
00032         // is logged in ?
00033         if ( !( $this->getUser() ) ) {
00034             return $this->_sThisTemplate = $this->_sThisLoginTemplate;
00035         }
00036 
00037         return $this->_sThisTemplate;
00038     }
00039 
00045     public function showShipAddress()
00046     {
00047         return oxSession::getVar( 'blshowshipaddress' );
00048     }
00049 
00057     public function getCountryList()
00058     {
00059         if ( $this->_oCountryList === null ) {
00060             // passing country list
00061             $this->_oCountryList = oxNew( 'oxcountrylist' );
00062             $this->_oCountryList->loadActiveCountries();
00063         }
00064         return $this->_oCountryList;
00065     }
00066 
00072     public function getBreadCrumb()
00073     {
00074         $aPaths = array();
00075         $aPath = array();
00076 
00077         $aPath['title'] = oxLang::getInstance()->translateString( 'PAGE_ACCOUNT_MY_ACCOUNT', oxLang::getInstance()->getBaseLanguage(), false );
00078         $aPath['link']  = oxSeoEncoder::getInstance()->getStaticUrl( $this->getViewConfig()->getSelfLink() . 'cl=account' );
00079         $aPaths[] = $aPath;
00080 
00081         $aPath['title'] = oxLang::getInstance()->translateString( 'BILLING_SHIPPING_SETTINGS', oxLang::getInstance()->getBaseLanguage(), false );
00082         $aPath['link']  = $this->getLink();
00083         $aPaths[] = $aPath;
00084 
00085         return $aPaths;
00086     }
00087 }