Github pull request status updates

This commit is contained in:
Dan Cryer 2013-05-14 16:58:14 +01:00
commit 812dfcb95a
6 changed files with 87 additions and 7 deletions

View file

@ -21,6 +21,7 @@ class ProjectBase extends Model
'reference' => null,
'git_key' => null,
'type' => null,
'token' => null,
);
protected $_getters = array(
'id' => 'getId',
@ -28,6 +29,7 @@ class ProjectBase extends Model
'reference' => 'getReference',
'git_key' => 'getGitKey',
'type' => 'getType',
'token' => 'getToken',
);
@ -38,6 +40,7 @@ class ProjectBase extends Model
'reference' => 'setReference',
'git_key' => 'setGitKey',
'type' => 'setType',
'token' => 'setToken',
);
public $columns = array(
@ -80,6 +83,14 @@ class ProjectBase extends Model
),
'token' => array(
'type' => 'varchar',
'length' => '50',
'nullable' => true,
),
);
public $indexes = array(
@ -130,6 +141,14 @@ class ProjectBase extends Model
return $rtn;
}
public function getToken()
{
$rtn = $this->_data['token'];
return $rtn;
}
public function setId($value)
@ -202,6 +221,20 @@ class ProjectBase extends Model
$this->_setModified('type');
}
public function setToken($value)
{
$this->_validateString('Token', $value);
if($this->_data['token'] == $value)
{
return;
}
$this->_data['token'] = $value;
$this->_setModified('token');
}