public function add(array $data)
    {
        if (!$this->isDb()) {
            return false;
        }

        $data += array(
            'created' => GC_TIME,
            'log_id' => gplcart_string_random(6)
        );

        try {
            $result = (bool) $this->db->insert('log', $data);
        } catch (Exception $ex) {
            $result = false;
        }

        return $result;
    }
public function add(array $data)
    {
        if (!$this->isDb()) {
            return false;
        }

        $data += array(
            'created' => GC_TIME,
            'log_id' => gplcart_string_random(6)
        );

        try {
            $result = (bool) $this->db->insert('log', $data);
        } catch (Exception $ex) {
            $result = false;
        }

        return $result;
    }
public function add ( array $ data ) { if ( ! $ this -> isDb ( ) ) { return false ; } $ data += array ( 'created' => GC_TIME , 'log_id' => gplcart_string_random ( 6 ) ) ; try { $ result = ( bool ) $ this -> db -> insert ( 'log' , $ data ) ; } catch ( Exception $ ex ) { $ result = false ; } return $ result ; }
Adds a log record
@param array $data
@return bool
Adds a log record