block-editor
1 year ago
config-validator
1 year ago
css
2 years ago
js
1 year ago
swv
2 years ago
capabilities.php
7 years ago
contact-form-functions.php
1 year ago
contact-form-template.php
2 years ago
contact-form.php
1 year ago
controller.php
1 year ago
file.php
1 year ago
form-tag.php
2 years ago
form-tags-manager.php
3 years ago
formatting.php
1 year ago
functions.php
1 year ago
html-formatter.php
1 year ago
integration.php
2 years ago
l10n.php
3 years ago
mail-tag.php
2 years ago
mail.php
1 year ago
pipe.php
2 years ago
pocket-holder.php
3 years ago
rest-api.php
2 years ago
shortcodes.php
3 years ago
special-mail-tags.php
2 years ago
submission.php
1 year ago
upgrade.php
2 years ago
validation-functions.php
2 years ago
validation.php
3 years ago
pocket-holder.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Handy trait provides methods to handle dynamic properties. |
| 5 | */ |
| 6 | trait WPCF7_PocketHolder { |
| 7 | |
| 8 | protected $pocket = array(); |
| 9 | |
| 10 | public function pull( $key ) { |
| 11 | if ( isset( $this->pocket[$key] ) ) { |
| 12 | return $this->pocket[$key]; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | public function push( $key, $value ) { |
| 17 | $this->pocket[$key] = $value; |
| 18 | } |
| 19 | |
| 20 | } |
| 21 |