src/acdhOeaw/fedora/Fedora.php
public function prolong(string $txUrl = null) {
        $url = $txUrl ?? $this->txUrl;
        if ($url) {
            if ($url === $this->txUrl) {
                $this->txTimestamp = time();
            }
            $this->client->post($url . '/fcr:tx');
        }
    }
public function prolong(string $txUrl = null) {
        $url = $txUrl ?? $this->txUrl;
        if ($url) {
            if ($url === $this->txUrl) {
                $this->txTimestamp = time();
            }
            $this->client->post($url . '/fcr:tx');
        }
    }
public function prolong ( string $ txUrl = null ) { $ url = $ txUrl ?? $ this -> txUrl ; if ( $ url ) { if ( $ url === $ this -> txUrl ) { $ this -> txTimestamp = time ( ) ; } $ this -> client -> post ( $ url . '/fcr:tx' ) ; } }
Fedora transactions automatically expire after 3 minutes. If you want
a transaction to be kept longer it must be manually prolonged. This
method does it for you.
@param string $txUrl optional transaction URL. If not provided, current
transaction URL is used.
@see begin()
Fedora transactions automatically expire after 3 minutes . If you want a transaction to be kept longer it must be manually prolonged . This method does it for you .