public function add(array $data)
    {
        $result = null;
        $this->hook->attach('country.add.before', $data, $result, $this);

        if (isset($result)) {
            return (bool) $result;
        }

        $result = true;
        $this->db->insert('country', $data);
        $this->hook->attach('country.add.after', $data, $result, $this);
        return (bool) $result;
    }
public function add(array $data)
    {
        $result = null;
        $this->hook->attach('country.add.before', $data, $result, $this);

        if (isset($result)) {
            return (bool) $result;
        }

        $result = true;
        $this->db->insert('country', $data);
        $this->hook->attach('country.add.after', $data, $result, $this);
        return (bool) $result;
    }
public function add ( array $ data ) { $ result = null ; $ this -> hook -> attach ( 'country.add.before' , $ data , $ result , $ this ) ; if ( isset ( $ result ) ) { return ( bool ) $ result ; } $ result = true ; $ this -> db -> insert ( 'country' , $ data ) ; $ this -> hook -> attach ( 'country.add.after' , $ data , $ result , $ this ) ; return ( bool ) $ result ; }
Adds a country
@param array $data
@return boolean
Adds a country