From a50fd009ca7ec82a1f0925f8b97abe28879b3aae Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 12 Dec 2017 12:34:53 +1300 Subject: [PATCH] Update PHPDoc --- src/Forms/Form.php | 6 +++--- src/ORM/DataObject.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 0da09cbd6..c8ccbf116 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -173,7 +173,7 @@ class Form extends ViewableData implements HasRequestHandler * another template for customisation. * * @see Form->setTemplate() - * @var string|null + * @var string|array|null */ protected $template; @@ -974,7 +974,7 @@ class Form extends ViewableData implements HasRequestHandler * Set the SS template that this form should use * to render with. The default is "Form". * - * @param string $template The name of the template (without the .ss extension) + * @param string|array $template The name of the template (without the .ss extension) or array form * @return $this */ public function setTemplate($template) @@ -986,7 +986,7 @@ class Form extends ViewableData implements HasRequestHandler /** * Return the template to render this form with. * - * @return string + * @return string|array */ public function getTemplate() { diff --git a/src/ORM/DataObject.php b/src/ORM/DataObject.php index 9b6589fbe..28f4f846a 100644 --- a/src/ORM/DataObject.php +++ b/src/ORM/DataObject.php @@ -100,6 +100,7 @@ use stdClass; * * @property int $ID ID of the DataObject, 0 if the DataObject doesn't exist in database. * @property int $OldID ID of object, if deleted + * @property string $Title * @property string $ClassName Class name of the DataObject * @property string $LastEdited Date and time of DataObject's last modification. * @property string $Created Date and time of DataObject creation.