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;
    }
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;
    }
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 ; }
Loads a zone from the database
@param int $zone_id
@return array
Loads a zone from the database