Xinc-Build
[ class tree: Xinc-Build ] [ index: Xinc-Build ] [ all elements ]

Class: Xinc_Build_History

Source Location: /Xinc/Build/History.php

Class Overview




Constants

Methods



Class Details

[line 40]


[ Top ]


Class Methods


static method addBuild [line 654]

static void addBuild( Xinc_Build_Interface &$build, string $serialFileName, Xinc_Build_Interface $build)

Adds a build to the history file



Tags:

throws:  Xinc_Build_History_Exception_General
access:  public


Parameters:

Xinc_Build_Interface   $build  
string   $serialFileName  
Xinc_Build_Interface   &$build  

[ Top ]

static method deleteBuild [line 497]

static void deleteBuild( string $projectName, mixed $timestamp)

deletes a build from the history



Tags:

access:  public


Parameters:

string   $projectName  
mixed   $timestamp   Either the integer unix timestamp or timeformat: "YYYY-MM-DD HH:MI:SS-TZ"

[ Top ]

static method deleteBuilds [line 431]

static void deleteBuilds( string $projectName, mixed $fromTimestamp, mixed $toTimestamp)

deletes a number of build from the history



Tags:

access:  public


Parameters:

string   $projectName  
mixed   $fromTimestamp   Either the integer unix timestamp or timeformat: "YYYY-MM-DD HH:MI:SS-TZ"
mixed   $toTimestamp   Either the integer unix timestamp or timeformat: "YYYY-MM-DD HH:MI:SS-TZ"

[ Top ]

static method get [line 181]

static array get( Xinc_Project &$project, Xinc_Project $project)

returns an array of build timestamps for a project



Tags:

throws:  Xinc_Build_Exception_Unserialization
access:  public


Parameters:

Xinc_Project   $project  
Xinc_Project   &$project  

[ Top ]

static method getBuildDir [line 243]

static string getBuildDir( Xinc_Project &$project, integer $timestamp, Xinc_Project $project)

Returns the directory of the serialized build



Tags:

throws:  Xinc_Build_History_Exception_General
throws:  Xinc_Build_Exception_NotFound
throws:  Xinc_Build_Exception_NotFound
access:  public


Parameters:

Xinc_Project   $project  
integer   $timestamp  
Xinc_Project   &$project  

[ Top ]

static method getBuildFile [line 258]

static string getBuildFile( Xinc_Project &$project, integer $timestamp, Xinc_Project $project)

Gets the filename of a historical build



Tags:

throws:  Xinc_Build_Exception_NotFound
throws:  Xinc_Build_History_Exception_General
access:  public


Parameters:

Xinc_Project   $project  
integer   $timestamp  
Xinc_Project   &$project  

[ Top ]

static method getCount [line 52]

static integer getCount( Xinc_Project &$project, Xinc_Project $project)

Get the number of historical builds for a project



Tags:

throws:  Xinc_Build_History_Exception_General
access:  public


Parameters:

Xinc_Project   $project  
Xinc_Project   &$project  

[ Top ]

static method getFromTo [line 125]

static array getFromTo( Xinc_Project &$project, integer $start, [integer $limit = null], [ $descending = true], Xinc_Project $project)

Returns an array of historical builds



Tags:

throws:  Xinc_Build_History_Exception_General
access:  public


Parameters:

Xinc_Project   $project  
integer   $start  
integer   $limit  
Xinc_Project   &$project  
   $descending  

[ Top ]

static method getFromToTimestamp [line 69]

static void getFromToTimestamp( Xinc_Project &$project, $fromTimestamp, [ $limit = null], [ $descending = true])



Tags:

access:  public


Parameters:

Xinc_Project   &$project  
   $fromTimestamp  
   $limit  
   $descending  

[ Top ]

static method getLastBuildDir [line 290]

static unknown getLastBuildDir( Xinc_Project &$project, Xinc_Project $project)



Tags:

throws:  Xinc_Build_Exception_NotFound
throws:  Xinc_Build_History_Exception_General
access:  public


Parameters:

Xinc_Project   $project  
Xinc_Project   &$project  

[ Top ]

static method getLastBuildFile [line 222]

static string getLastBuildFile( Xinc_Project &$project, Xinc_Project $project)

Gets the last build filename, of the serialized build



Tags:

throws:  Xinc_Build_Exception_NotFound
throws:  Xinc_Build_Exception_Unserialization
throws:  Xinc_Build_History_Exception_General
throws:  Xinc_Build_Exception_NotFound
access:  public


Parameters:

Xinc_Project   $project  
Xinc_Project   &$project  

[ Top ]

static method getLastBuildTime [line 313]

static integer getLastBuildTime( Xinc_Project &$project, Xinc_Project $project)

Finds the last build time of a project



Tags:

throws:  Xinc_Build_Exception_Unserialization
access:  public


Parameters:

Xinc_Project   $project  
Xinc_Project   &$project  

[ Top ]

static method getLastSuccessfulBuildDir [line 301]

static string getLastSuccessfulBuildDir( Xinc_Project &$project, Xinc_Project $project)



Tags:

access:  public


Parameters:

Xinc_Project   $project  
Xinc_Project   &$project  

[ Top ]

static method getLastSuccessfulBuildFile [line 228]

static void getLastSuccessfulBuildFile( Xinc_Project &$project)



Tags:

access:  public


Parameters:

Xinc_Project   &$project  

[ Top ]

static method getLastSuccessfulBuildTime [line 356]

static void getLastSuccessfulBuildTime( Xinc_Project &$project)



Tags:

access:  public


Parameters:

Xinc_Project   &$project  

[ Top ]


Class Constants

HISTORY_DIR =  '.history'

[line 43]


[ Top ]

PART_MAX =  1000

[line 42]


[ Top ]



Documentation generated on Sun, 09 Dec 2012 21:49:27 +0100 by phpDocumentor 1.4.4