public function execute()
    {
        if ($this->type == self::SELECT) {
            $this->loaded = true;
            if ($this->cacheTime !== false) {
                return $this->fetchFromCache();
            } else {
                return $this->db->fetchAll($this->getSql(), $this->params, $this->paramTypes);
            }
        } else {
            return $this->db->executeUpdate($this->getSql(), $this->params, $this->paramTypes);
        }
    }
public function execute()
    {
        if ($this->type == self::SELECT) {
            $this->loaded = true;
            if ($this->cacheTime !== false) {
                return $this->fetchFromCache();
            } else {
                return $this->db->fetchAll($this->getSql(), $this->params, $this->paramTypes);
            }
        } else {
            return $this->db->executeUpdate($this->getSql(), $this->params, $this->paramTypes);
        }
    }
public function execute ( ) { if ( $ this -> type == self :: SELECT ) { $ this -> loaded = true ; if ( $ this -> cacheTime !== false ) { return $ this -> fetchFromCache ( ) ; } else { return $ this -> db -> fetchAll ( $ this -> getSql ( ) , $ this -> params , $ this -> paramTypes ) ; } } else { return $ this -> db -> executeUpdate ( $ this -> getSql ( ) , $ this -> params , $ this -> paramTypes ) ; } }
Execute this query using the bound parameters and their types

@return mixed
Execute this query using the bound parameters and their types