core/Field/Group_Field.php 1 location
|
@@ 252-260 (lines=9) @@
|
| 249 |
|
* @param string $name |
| 250 |
|
* @return boolean |
| 251 |
|
*/ |
| 252 |
|
public function register_field_name( $name ) { |
| 253 |
|
if ( in_array( $name, $this->registered_field_names ) ) { |
| 254 |
|
Incorrect_Syntax_Exception::raise( 'Field name "' . $name . '" already registered' ); |
| 255 |
|
return false; |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
$this->registered_field_names[] = $name; |
| 259 |
|
return true; |
| 260 |
|
} |
| 261 |
|
} |
| 262 |
|
|
core/Container/Container.php 1 location
|
@@ 581-589 (lines=9) @@
|
| 578 |
|
* @param string $name |
| 579 |
|
* @return boolean |
| 580 |
|
*/ |
| 581 |
|
protected function register_field_name( $name ) { |
| 582 |
|
if ( in_array( $name, $this->registered_field_names ) ) { |
| 583 |
|
Incorrect_Syntax_Exception::raise( 'Field name "' . $name . '" already registered' ); |
| 584 |
|
return false; |
| 585 |
|
} |
| 586 |
|
|
| 587 |
|
$this->registered_field_names[] = $name; |
| 588 |
|
return true; |
| 589 |
|
} |
| 590 |
|
|
| 591 |
|
/** |
| 592 |
|
* Return whether the datastore instance is the default one or has been overriden |