Skip to content

Commit 676e29f

Browse files
committed
add proximal method to Form
1 parent 0b7d507 commit 676e29f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

core/Form/PlainForm.class.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ public function getRawValue($name)
116116
return $this->get($name)->getRawValue();
117117
}
118118

119+
public function getValueOrDefault($name)
120+
{
121+
return $this->get($name)->getValueOrDefault();
122+
}
123+
124+
/**
125+
* @deprecated since version 1.0
126+
* @see getValueOrDefault
127+
*/
119128
public function getActualValue($name)
120129
{
121130
return $this->get($name)->getActualValue();
@@ -160,4 +169,4 @@ public function getPrimitiveList()
160169
return $this->primitives;
161170
}
162171
}
163-
?>
172+

0 commit comments

Comments
 (0)