/framework/core/form/FormBinding.php
PHP | 24 lines | 21 code | 3 blank | 0 comment | 0 complexity | be7db6f0f29978a636f2f3d5785fd660 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
- <?php
- class FormBinding
- {
- private $class;
- private $id;
- private $field;
-
- function __construct($class, $id, $field)
- {
- $this->class = $class;
- $this->id = $id;
- $this->field = $field;
- }
-
- public function getName()
- {
- return "_zoop_form_element[{$this->class}][{$this->id}][{$this->field}]";
- }
-
- public function getString()
- {
- return "{$this->class}:{$this->id}:{$this->field}";
- }
- }