Skip to content
Browse files

Updated docblocks.

  • Loading branch information...
ADmad committed Feb 20, 2014
1 parent 3521719 commit cee77afd0e24a1055dcfef58d2cf835eb1f9fe3d
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/View/Helper/FormHelper.php
@@ -551,8 +551,9 @@ public function unlockField($name = null) {
* Populates $this->fields
* @param boolean $lock Whether this field should be part of the validation
* or excluded as part of the unlockedFields.
* @param string $field Reference to field to be secured. Should be dot separated to indicate nesting.
* or excluded as part of the unlockedFields.
* @param string|array $field Reference to field to be secured. Can be dot
* separated string to indicate nesting or array of fieldname parts.
* @param mixed $value Field value, if value should not be tampered with.
* @return mixed|null Not used yet
@@ -2780,10 +2781,12 @@ protected function _initInputField($field, $options = []) {
* Get the field name for use with _secure().
* Parses the name attribute to create a dot separated name value for use
* in secured field hash.
* in secured field hash. If filename is of form Model[field] an array of
* fieldname parts like ['Model', 'field'] is returned.
* @param array $options An array of options possibly containing a name key.
* @return string|null
* @return string|array|null Dot separated string like, array of filename
* params like ['Model', 'field'] or null if options does not contain name.
protected function _secureFieldName($options) {
if (!isset($options['name'])) {

0 comments on commit cee77af

Please sign in to comment.
You can’t perform that action at this time.