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