add getProjectTitle() to buildBase as shorthand for getProject()->getTitle()
This commit is contained in:
parent
0c12f0b98d
commit
248579f67d
1 changed files with 11 additions and 0 deletions
|
|
@ -550,6 +550,17 @@ class BuildBase extends Model
|
|||
return $rtn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of the project's Title / title.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProjectTitle()
|
||||
{
|
||||
return $this->getProject()->getTitle();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set Project - Accepts an ID, an array representing a Project or a Project model.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue