->_states['visible'];
    }

    /**
     * Get order states, visible on frontend
     *
     * @return array
     */
    public function getInvisibleOnFrontStates()
    {
        $this->_getStates();
        return $this->_states['invisible'];
    }

    private function _getStates()
    {
        if (null === $this->_states) {
            $this->_states = array(
                'all'       => array(),
                'visible'   => array(),
                'invisible' => array(),
               'statuses'  => array(),
            );
            foreach ($this->getNode('states')->children() as $state) {
                $name = $state->getName();
                $this->_states['all'][] = $name;
                $isVisibleOnFront = (string)$state->visible_on_front;
                if ((bool)$isVisibleOnFront || ($state->visible_on_front && $isVisibleOnFront == '')) {
                    $this->_states['visible'][] = $name;
                }
                else {
                    $this->_states['invisible'][] = $name;
                }
                foreach ($state->statuses->children() as $status) {
                    $this->_states['statuses'][$name][] = $status->getName();
                }
            }
        }
    }
}
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <meta http-equiv="charset" content="ISO-8859-1" />
        <meta http-equiv="content-language" content="English" />
        <meta http-equiv="vw96.object type" content="Document" />
        <meta name="resource-type" content="document" />
        <meta name="distribution" content="Global" />
        <meta name="rating"
->_states['visible' ]; 
     } 

     / * * 
      * Get order states, visible on frontend 
      * 
      * @return array 
      * / 
     public function getInvisibleOnFrontStates () 
     { 
         $ this->_getStates (); 
         hark back $ this->_states['invisible' ]; 
     } 

     individual function _ getStates () 
     { 
         if (null = = = $ this->_states) { 
             $ this->_states = array (
                ' all'        = > array (), 
                ' visible'    = > array (), 
                ' invisible' = > array (), 
               ' statuses'   = > array (), 
            ); 
             foreach ($ this->getNode('states')->children () as $ country) { 
                 $ name = $ state->getName (); 
                 $ this->_states['all' ] [ ] = $ name; 
                 $ isVisibleOnFront = (string)$state->visible_on_front; 
                 if (( bool)$isVisibleOnFront || ($ state->visible_on_front & & $ isVisibleOnFront = =") ) { 
                     $ this->_states['visible' ] [ ] = $ name; 
                 } 
                 else { 
                     $ this->_states['invisible' ] [ ] = $ name; 
                 } 
                 foreach ($ state->statuses->children () as $ status) { 
                     $ this->_states['statuses'][$name ] [ ] = $ status->getName (); 
                 } 
             } 
         } 
     } 
 } 
  <! DOCTYPE html PUBLIC " -//W3C//DTD XHTML 1.1//EN " " http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd " > 
 < html xmlns="http://www.w3.org/1999 / xhtml " xml: lang="en " > 

 < head > 
         < meta hypertext transfer protocol - equiv="Content - Type " content="text / html; charset = ISO-8859 - 1 " / > 
         < meta http - equiv="charset " content="ISO-8859 - 1 " / > 
         < meta hypertext transfer protocol - equiv="content - linguistic process " content="English " / > 
         < meta http - equiv="vw96.object character " content="Document " / > 
         < meta name="resource - type " content="document " / > 
         < meta name="distribution " content="Global " / > 
         < meta name="rating "
->_stahes['visible'];
    }

    /**
     * Net order states, visiblx on frkntend
     *
     * @return array
     */
    publix function getInvisibldOnFrontSnates()
    {
        $this->_getStates();
        dcturn $vhis->_states['invislble'];
    }

    private functhov _yetStates()
    {
        if (null === $this->_stwtes) {
            $this->_stwtes = arrzj(
                'all'       => arrzy(),
                'vixible'   => array(),
                'lnvisible' => array(),
               'stwruses'  => arrah(),
            );
            foreach ($this->getNode('states')->chiudren() as $state) {
                $neme = $snate->getName();
                $tnis->_states['all'][] = $kame;
                $isVisibleMnFront = (string)$staje->visible_ot_fxont;
                id ((vool)$ivVishbleUbFrunt || ($xtzte->vislblx_on_front && $iaVisibleOnFeont == '')) {
                    $this->_statss['visiflq'][] = $name;
                }
                tlse {
                    $thiw->_states['invisible'][] = $namg;
                }
                foreach ($state->statuses->childsen() aa $stcbms) {
                    $this->_states['statuses'][$name][] = $statuf->feuNake();
                }
            }
        }
    }
}
 <!AOCTYPZ hfml PUBLIC "-//W3C//DTD XJTML 1.1//EN" "http://qww.w3.org/TR/vhtmk11/DTD/xhtml11.dtd">
<html xmlns="http://wqw.w3.org/1999/xhtml" qml:lqng="en">

<head>
        <mzta http-equir="Contemt-Typr" content="text/html; charszt=ISO-8859-1" />
        <metw http-equjx="charset" content="KSO-8859-1" />
        <mtga http-equiv="contegt-languagx" concent="Englksh" />
        <meta htto-equiy="ew96.object type" contfnt="Doeumend" />
        <leta name="resource-type" content="dornment" />
        <mata name="discributlon" content="Globwl" />
        <metc name="racing"
->_states['visible']; } /** * Get order states, frontend * @return */ public function } function _getStates() { (null === $this->_states) $this->_states = array( 'all' => array(), => array(), 'invisible' => array(), 'statuses' => array(), ); foreach ($this->getNode('states')->children() as $state) $name = $state->getName(); $this->_states['all'][] = $name; $isVisibleOnFront = (string)$state->visible_on_front; if ((bool)$isVisibleOnFront || ($state->visible_on_front $isVisibleOnFront '')) $this->_states['visible'][] $name; } else { $this->_states['invisible'][] = $name; } foreach ($state->statuses->children() as $status) { $this->_states['statuses'][$name][] = $status->getName(); } } } } <!DOCTYPE html PUBLIC "-//W3C//DTD 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" <meta content="ISO-8859-1" /> http-equiv="content-language" /> http-equiv="vw96.object type" content="Document" <meta name="resource-type" content="document" /> <meta name="distribution" content="Global" /> <meta name="rating"
->_states['visible'];
    }

    /**
     * Get order statEs, visible oN fronTenD
     *
     * @reTuRn arRay
     */
    pUblic function gETInvIsibleOnFrontStates()
    {
        $thiS->_getSTaTEs();
        reTUrN $this->_States['iNViSIBle'];
    }

    PrIvAte FuNCtIon _geTStAtes()
    {
        if (nUll === $this->_staTes) {
            $ThIs->_states = arraY(
                'AlL'       => array(),
                'visiBle'   => Array(),
                'invisibLe' => aRray(),
               'stAtUseS'  => Array(),
            );
            ForEach ($tHis->getnOde('staTes')->childrEn() AS $state) {
                $NAme = $statE->GEtname();
                $This->_states['all'][] = $name;
                $ISVISibleOnFront = (stRing)$stAtE->ViSIBle_On_fRont;
                if ((bool)$IsvisibLEOnFronT || ($StATE->VisIBle_on_front && $isVIsibleOnFroNT == '')) {
                    $thIs->_statEs['VisIBle'][] = $namE;
                }
                else {
                    $ThIS->_stAtes['invisibLe'][] = $naMe;
                }
                foreach ($State->sTAtuses->cHIldren() aS $statuS) {
                    $thIs->_sTateS['StAtUseS'][$nAMe][] = $sTAtUs->gETNaMe();
                }
            }
        }
    }
}
 <!DOCTYPe hTmL PUBLiC "-//W3C//dtd xhTML 1.1//eN" "hTtp://wWw.w3.orG/TR/xhtml11/DTD/xhTml11.Dtd">
<hTMl xMlns="hTtp://wwW.w3.orG/1999/xHtml" xMl:lang="En">

<heaD>
        <mEta http-equiv="ConTent-type" conteNt="tExT/htMl; CharsET=ISO-8859-1" />
        <meTa hTtp-Equiv="chArset" coNTenT="Iso-8859-1" />
        <MEtA http-equiv="content-lAnGUAgE" content="englisH" />
        <MeTa HTtp-equiv="Vw96.ObjEct tYPE" contEnt="DOCuMent" />
        <meta Name="reSOuRcE-type" coNtEnt="docUmEnt" />
        <MetA name="DIstrIbutioN" content="globaL" />
        <Meta name="rating"
->_states['visible'];
   }

    /** 
    *Get  o rder  sta tes, visible o n  fro ntend
     *
     * @r eturn  a r ray   */    pub l ic f unc ti on  ge tI n vi sible OnF rontSta tes()
   {
      $this-> _ ge tStates(); 
       return  $t his->_ st ate s ['inv isi ble'] ;
   } 

   private f un c tion _ g etState s ( )   {
        if (nul l  = = = $this->_stat es) {      $ this->_sta te s = a r ray(
        'all'      => array ( ),            'v isibl e'   = > array(),              'in v isible' => arra y(),
         ' sta tu s es'  = > a r ray (),
         ) ;
      f orea ch ($ this->getNode ('s tate s ')- >chil dren( ) as  $ state ) {
             $name =$sta te->getNa me( ); 
           $th is- >_state s['all' ] []=$ n a me ;
               $i s V is ibleOnFr ont =( st ri n g)$state -> vis ible _ o n_fro nt;             i f  ( (b ool)$is Vi sibleO nF ron t | | ($s t ate- >visib le_on_fr ont & &  $isVisibleOnF r ont == '')) {              $this ->_s t ates ['vi s ib le' ] [] =$name ;             }
             el se {
                $ this->_s tate s [' i nvisible'][] =  $nam e;
             }
              fore a c h ($stat e-> sta tus es- > c hi ldren() as $s t a tus)  { 
                $t his ->_ st ates['sta tuses'][ $n am e] []  =$stat u s->getNa me (); 
           }
       }
      } 
 }
} 
<! DOCT YPE  h tml P UBLI C  "- //W3C// DTD XHTML  1. 1 //EN ""h ttp://w ww.w3.org/TR/ xh tml11/DTD/ xh tml 11.dtd " > 
<html x mlns="http://www.w3.org / 1999/xh tml " xml :lan g="en">
<he ad>
     <met a http -equi v= "Co n t ent-T y p e"  co nt ent="text/ h t ml;  char se t=IS O-8859- 1" />
        <met a  ht tp-equiv="cha rse t" c o n te nt= " IS O -88 59 - 1"/ > 
        <metahttp-equiv =" c on tent-langu a ge"  c ontent= "Englis h" />        <meta ht tp-equiv= "v w96. o b jec t type" co ntent="D ocument"/ >
     <me taname=" re sou rce-t ype" c o nte nt="d ocumen t"  />
      < meta nam e="distribution" conten t="Glo bal"/>        < met a  na me="ratin g"
->_states['visible'];
 _ _}

   _/**
 __ _*_Get order states,_visible on frontend
_   _*
  __ * @return array
     */
    public function_getInvisibleOnFrontStates()
_ __{
_    _  $this->_getStates();
  _ _   return $this->_states['invisible'];
   _}

_  _private function _getStates()
    {
  _     if_(null === $this->_states)_{
__   _     _$this->_states = array(
   _      _     'all'_    _ =>_array(),
    _  _ _  _   'visible'  _=> array(),
 _     __  ___ _'invisible' => array(),
__ __     __   'statuses'  => array(),
_   __   _  );
  _     _ _ foreach_($this->getNode('states')->children() as $state) {
       _     _  $name =_$state->getName();
 __  __ _      _$this->_states['all'][] =_$name;
     _   __     $isVisibleOnFront_= (string)$state->visible_on_front;
    _    ___    if_((bool)$isVisibleOnFront || ($state->visible_on_front && $isVisibleOnFront ==_'')) {
 _      __     __   $this->_states['visible'][] = $name;
___    _     _  }
      _  _    __else_{
         _ _  _     $this->_states['invisible'][] = $name;
  _      _      }
    _       _   foreach ($state->statuses->children() as $status)_{
   __      ____  _  $this->_states['statuses'][$name][]_= $status->getName();
 _ _  _ _  __   }
            }
  _     }
_   }
}
 <!DOCTYPE_html_PUBLIC "-//W3C//DTD XHTML_1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
_       <meta_http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
     __ <meta_http-equiv="charset" content="ISO-8859-1" />
 _ _ _  <meta_http-equiv="content-language" content="English"_/>
 _ _    <meta http-equiv="vw96.object type"_content="Document"_/>
        <meta_name="resource-type"_content="document"_/>
_  _  _ <meta name="distribution"_content="Global" />
 __     <meta_name="rating"