Fixing getAccessInformation()
This commit is contained in:
parent
4d5f4b44b7
commit
ac0bac111a
|
@ -68,4 +68,19 @@ class Build extends BuildBase
|
||||||
{
|
{
|
||||||
return ($this->getStatus() === self::STATUS_SUCCESS);
|
return ($this->getStatus() === self::STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getAccessInformation($key = null)
|
||||||
|
{
|
||||||
|
$data = unserialize($this->data['access_information']);
|
||||||
|
|
||||||
|
if (is_null($key)) {
|
||||||
|
$rtn = $data;
|
||||||
|
} else if (isset($data[$key])) {
|
||||||
|
$rtn = $data[$key];
|
||||||
|
} else {
|
||||||
|
$rtn = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $rtn;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue