public function installFinish(array $data, $db)
    {
        $this->db = $db;
        $this->data = $data;

        $result = $this->finish();
        $errors = $this->getContextErrors();

        if (empty($errors)) {
            if ($this->getContext('demo_handler_id')) {
                $store_id = $this->getContext('store_id');
                $this->getStoreModel()->update($store_id, array('status' => 1));
            }
        } else {
            $result['severity'] = 'warning';
            $result['message'] = implode(PHP_EOL, $errors);
        }

        return $result;
    }
public function installFinish(array $data, $db)
    {
        $this->db = $db;
        $this->data = $data;

        $result = $this->finish();
        $errors = $this->getContextErrors();

        if (empty($errors)) {
            if ($this->getContext('demo_handler_id')) {
                $store_id = $this->getContext('store_id');
                $this->getStoreModel()->update($store_id, array('status' => 1));
            }
        } else {
            $result['severity'] = 'warning';
            $result['message'] = implode(PHP_EOL, $errors);
        }

        return $result;
    }
public function installFinish ( array $ data , $ db ) { $ this -> db = $ db ; $ this -> data = $ data ; $ result = $ this -> finish ( ) ; $ errors = $ this -> getContextErrors ( ) ; if ( empty ( $ errors ) ) { if ( $ this -> getContext ( 'demo_handler_id' ) ) { $ store_id = $ this -> getContext ( 'store_id' ) ; $ this -> getStoreModel ( ) -> update ( $ store_id , array ( 'status' => 1 ) ) ; } } else { $ result [ 'severity' ] = 'warning' ; $ result [ 'message' ] = implode ( PHP_EOL , $ errors ) ; } return $ result ; }
Performs final tasks. Step 3
@param array $data
@param \gplcart\core\Database $db
@return array
Performs final tasks . Step 3