Exemple #1
0
 public function __construct(Project_Build $build)
 {
     parent::__construct();
     $this->_ptrProjectBuild = $build;
     $this->_buildId = $build->getId();
     $this->_date = null;
     $this->_version = '';
     $this->_ahh = '';
     $this->_andc = '';
     $this->_calls = '';
     $this->_ccn = '';
     $this->_ccn2 = '';
     $this->_cloc = '';
     $this->_clsa = '';
     $this->_clsc = '';
     $this->_eloc = '';
     $this->_fanout = '';
     $this->_leafs = '';
     $this->_lloc = '';
     $this->_loc = '';
     $this->_maxDit = '';
     $this->_ncloc = '';
     $this->_noc = '';
     $this->_nof = '';
     $this->_noi = '';
     $this->_nom = '';
     $this->_nop = '';
     $this->_roots = '';
 }
 public function __construct()
 {
     parent::__construct();
     //
     // Make sure that bool valued settings are cast to ints.
     //
     $this->_settings = array(self::ALLOW_USER_REGISTRATION => 1, self::EXECUTABLE_TAR => Framework_HostOs::isWindows() ? '' : 'tar', self::EXECUTABLE_GIT => 'git' . (Framework_HostOs::isWindows() ? '.exe' : ''), self::EXECUTABLE_PHP => 'php' . (Framework_HostOs::isWindows() ? '.exe' : '') . (php_ini_loaded_file() ? ' -c ' . htmlentities(str_replace(array('\\', '//'), '/', php_ini_loaded_file())) : ''), self::EXECUTABLE_SVN => 'svn' . (Framework_HostOs::isWindows() ? '.exe' : ''), self::INTERNAL_BUILDER_ACTIVE => CINTIENT_INTERNAL_BUILDER_ACTIVE, self::VERSION => '');
 }
Exemple #3
0
 public function __construct(Project_Build $build)
 {
     parent::__construct();
     $this->_ptrProjectBuild = $build;
     $this->_buildId = $build->getId();
     $this->_date = null;
     $this->_version = '';
 }
Exemple #4
0
 public function __construct(Project $project, User $user, $access = Access::DEFAULT_USER_ACCESS_LEVEL_TO_PROJECT)
 {
     parent::__construct();
     $this->_ptrProject = $project;
     $this->_ptrUser = $user;
     $this->_access = is_null($access) ? Access::DEFAULT_USER_ACCESS_LEVEL_TO_PROJECT : $access;
     $this->_notifications = new NotificationSettings($project, $user);
 }
Exemple #5
0
 public function __construct(Project $project)
 {
     parent::__construct();
     $this->_ptrProject = $project;
     $this->_id = null;
     $this->_date = null;
     $this->_type = '';
     $this->_message = '';
     $this->_username = '';
 }
Exemple #6
0
 public function __construct()
 {
     parent::__construct();
     $this->_avatar = null;
     $this->_cos = UserCos::USER;
     $this->_creationDate = date('Y-m-d H:i:s');
     $this->_email = '';
     $this->_enabled = true;
     $this->_id = null;
     $this->_name = '';
     $this->_notifications = array();
     $this->_username = '';
 }
Exemple #7
0
 public function __construct(Project $project)
 {
     parent::__construct();
     $this->_id = null;
     $this->_date = null;
     $this->_duration = null;
     $this->_label = '';
     $this->_description = '';
     $this->_output = '';
     $this->_releaseFile = '';
     $this->_specialTasks = $project->getSpecialTasks();
     $this->_status = self::STATUS_FAIL;
     $this->_scmRevision = '';
     $this->_ptrProject = $project;
 }
Exemple #8
0
 public function __construct()
 {
     parent::__construct();
     $this->_avatar = null;
     $this->_releaseLabel = '';
     $this->_description = '';
     $this->_scmCheckChangesTimeout = CINTIENT_PROJECT_CHECK_CHANGES_TIMEOUT_DEFAULT;
     $this->_scmConnectorType = SCM_DEFAULT_CONNECTOR;
     $this->_scmRemoteRepository = '';
     $this->_scmUsername = '';
     $this->_scmPassword = '';
     $this->_scmEnvVars = '';
     $this->_specialTasks = array();
     $this->_statsNumBuilds = 0;
     $this->_status = self::STATUS_UNINITIALIZED;
     $this->_title = '';
     $this->_users = array();
     $this->_workDir = '';
     //
     // Builders
     //
     $this->_integrationBuilder = new Build_BuilderElement_Project();
     $this->_deploymentBuilder = new Build_BuilderElement_Project();
     //
     // Options
     //
     $this->_optionReleasePackage = false;
 }