core/Field/Group_Field.php 1 location
|
@@ 245-253 (lines=9) @@
|
| 242 |
|
* @param string $name |
| 243 |
|
* @return boolean |
| 244 |
|
*/ |
| 245 |
|
public function register_field_name( $name ) { |
| 246 |
|
if ( in_array( $name, $this->registered_field_names ) ) { |
| 247 |
|
Incorrect_Syntax_Exception::raise( 'Field name "' . $name . '" already registered' ); |
| 248 |
|
return false; |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
$this->registered_field_names[] = $name; |
| 252 |
|
return true; |
| 253 |
|
} |
| 254 |
|
} |
| 255 |
|
|
core/Container/Container.php 1 location
|
@@ 537-545 (lines=9) @@
|
| 534 |
|
* @param string $name |
| 535 |
|
* @return boolean |
| 536 |
|
*/ |
| 537 |
|
protected function register_field_name( $name ) { |
| 538 |
|
if ( in_array( $name, $this->registered_field_names ) ) { |
| 539 |
|
Incorrect_Syntax_Exception::raise( 'Field name "' . $name . '" already registered' ); |
| 540 |
|
return false; |
| 541 |
|
} |
| 542 |
|
|
| 543 |
|
$this->registered_field_names[] = $name; |
| 544 |
|
return true; |
| 545 |
|
} |
| 546 |
|
|
| 547 |
|
/** |
| 548 |
|
* Return whether the datastore instance is the default one or has been overriden |