original_string: public function get($state_id)
      {
          $result = &gplcart_static("state.get.$state_id");
  
          if (isset($result)) {
              return $result;
          }
  
          $this->hook->attach('state.get.before', $state_id, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          $result = $this->db->fetch('SELECT * FROM state WHERE state_id=?', array($state_id));
          $this->hook->attach('state.get.after', $state_id, $result, $this);
          return $result;
      }
code: public function get($state_id)
      {
          $result = &gplcart_static("state.get.$state_id");
  
          if (isset($result)) {
              return $result;
          }
  
          $this->hook->attach('state.get.before', $state_id, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          $result = $this->db->fetch('SELECT * FROM state WHERE state_id=?', array($state_id));
          $this->hook->attach('state.get.after', $state_id, $result, $this);
          return $result;
      }
code_tokens: public function get ( $ state_id ) { $ result = & gplcart_static ( "state.get.$state_id" ) ; if ( isset ( $ result ) ) { return $ result ; } $ this -> hook -> attach ( 'state.get.before' , $ state_id , $ result , $ this ) ; if ( isset ( $ result ) ) { return $ result ; } $ result = $ this -> db -> fetch ( 'SELECT * FROM state WHERE state_id=?' , array ( $ state_id ) ) ; $ this -> hook -> attach ( 'state.get.after' , $ state_id , $ result , $ this ) ; return $ result ; }
docstring: Loads a country state from the database
  @param integer $state_id
  @return array
docstring_tokens: Loads a country state from the database