Added Gitlab support
This commit is contained in:
parent
f1fab01fd8
commit
47be59ae46
4 changed files with 123 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ class ProjectBase extends Model
|
|||
protected $data = array(
|
||||
'id' => null,
|
||||
'title' => null,
|
||||
'access_information' => null,
|
||||
'reference' => null,
|
||||
'git_key' => null,
|
||||
'type' => null,
|
||||
|
|
@ -49,6 +50,7 @@ class ProjectBase extends Model
|
|||
'reference' => 'getReference',
|
||||
'git_key' => 'getGitKey',
|
||||
'type' => 'getType',
|
||||
'access_information' => 'getAccessInformation',
|
||||
'token' => 'getToken',
|
||||
);
|
||||
|
||||
|
|
@ -61,6 +63,7 @@ class ProjectBase extends Model
|
|||
'reference' => 'setReference',
|
||||
'git_key' => 'setGitKey',
|
||||
'type' => 'setType',
|
||||
'access_information' => 'setAccessInformation',
|
||||
'token' => 'setToken',
|
||||
);
|
||||
|
||||
|
|
@ -82,6 +85,10 @@ class ProjectBase extends Model
|
|||
'type' => 'varchar',
|
||||
'length' => '250',
|
||||
),
|
||||
'access_information' => array(
|
||||
'type' => 'varchar',
|
||||
'length' => '250',
|
||||
),
|
||||
'git_key' => array(
|
||||
'type' => 'text',
|
||||
'length' => '',
|
||||
|
|
@ -150,6 +157,19 @@ class ProjectBase extends Model
|
|||
return $rtn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of Domain / domain.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccessInformation()
|
||||
{
|
||||
$rtn = unserialize($this->data['access_information']);
|
||||
|
||||
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of GitKey / git_key.
|
||||
*
|
||||
|
|
@ -246,6 +266,25 @@ class ProjectBase extends Model
|
|||
$this->_setModified('reference');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of Domain / domain.
|
||||
*
|
||||
* Must not be null.
|
||||
* @param $value string
|
||||
*/
|
||||
public function setAccessInformation($value)
|
||||
{
|
||||
$this->_validateNotNull('AccessInformation', $value);
|
||||
$this->_validateString('AccessInformation', $value);
|
||||
if ($this->data['access_information'] == $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->data['access_information'] = $value;
|
||||
|
||||
$this->_setModified('access_information');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of GitKey / git_key.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue