src/Data/DefaultDataProvider.php
public function setVersionActive($mixID, $mixVersion)
    {
        $updateValues = ['tl_version.pid' => $mixID, 'tl_version.fromTable' => $this->source];

        // Set version inactive.
        $this->connection->update('tl_version', ['tl_version.active' => ''], $updateValues);

        // Set version active.
        $updateValues['version'] = $mixVersion;
        $this->connection->update('tl_version', ['tl_version.active' => 1], $updateValues);
    }
public function setVersionActive($mixID, $mixVersion)
    {
        $updateValues = ['tl_version.pid' => $mixID, 'tl_version.fromTable' => $this->source];

        // Set version inactive.
        $this->connection->update('tl_version', ['tl_version.active' => ''], $updateValues);

        // Set version active.
        $updateValues['version'] = $mixVersion;
        $this->connection->update('tl_version', ['tl_version.active' => 1], $updateValues);
    }
public function setVersionActive ( $ mixID , $ mixVersion ) { $ updateValues = [ 'tl_version.pid' => $ mixID , 'tl_version.fromTable' => $ this -> source ] ; // Set version inactive. $ this -> connection -> update ( 'tl_version' , [ 'tl_version.active' => '' ] , $ updateValues ) ; // Set version active. $ updateValues [ 'version' ] = $ mixVersion ; $ this -> connection -> update ( 'tl_version' , [ 'tl_version.active' => 1 ] , $ updateValues ) ; }
Set a version as active.

@param mixed $mixID      The ID of the row.
@param mixed $mixVersion The version number to set active.

@return void
Set a version as active .