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;
    }
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;
    }
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 ; }
Loads a country state from the database
@param integer $state_id
@return array
Loads a country state from the database