public function incrementDeploymentRevision($details = null)
    {
        if (!$this->incrementedOnce) {

            $backtrace = null;//serialize(debug_backtrace());

            $version = $this->versionDao->insertSystemVersion($details, $backtrace);

            $this->Events->trigger('SystemVersion.increment', $version);

            $this->version = $version;
            $this->incrementedOnce = true;
        } else {
            $this->version = $this->version.'.'.$this->internal++;
        }
        $this->cache->delete('DeploymentRevision');
        $this->cache->delete('CFVersion');

        return $this->version;

    }
public function incrementDeploymentRevision($details = null)
    {
        if (!$this->incrementedOnce) {

            $backtrace = null;//serialize(debug_backtrace());

            $version = $this->versionDao->insertSystemVersion($details, $backtrace);

            $this->Events->trigger('SystemVersion.increment', $version);

            $this->version = $version;
            $this->incrementedOnce = true;
        } else {
            $this->version = $this->version.'.'.$this->internal++;
        }
        $this->cache->delete('DeploymentRevision');
        $this->cache->delete('CFVersion');

        return $this->version;

    }
public function incrementDeploymentRevision ( $ details = null ) { if ( ! $ this -> incrementedOnce ) { $ backtrace = null ; //serialize(debug_backtrace()); $ version = $ this -> versionDao -> insertSystemVersion ( $ details , $ backtrace ) ; $ this -> Events -> trigger ( 'SystemVersion.increment' , $ version ) ; $ this -> version = $ version ; $ this -> incrementedOnce = true ; } else { $ this -> version = $ this -> version . '.' . $ this -> internal ++ ; } $ this -> cache -> delete ( 'DeploymentRevision' ) ; $ this -> cache -> delete ( 'CFVersion' ) ; return $ this -> version ; }
Increases the current SystemVersion by one

should invalidate all cached object which use this version number in their key
details are stored in log; details describe circumstance of version update

@param string $details A string explaining the reason for the new version

@return integer The new version
Increases the current SystemVersion by one