PageRenderTime 39ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/core/form/FormBinding.php

http://zoop.googlecode.com/
PHP | 24 lines | 21 code | 3 blank | 0 comment | 0 complexity | be7db6f0f29978a636f2f3d5785fd660 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
  1. <?php
  2. class FormBinding
  3. {
  4. private $class;
  5. private $id;
  6. private $field;
  7. function __construct($class, $id, $field)
  8. {
  9. $this->class = $class;
  10. $this->id = $id;
  11. $this->field = $field;
  12. }
  13. public function getName()
  14. {
  15. return "_zoop_form_element[{$this->class}][{$this->id}][{$this->field}]";
  16. }
  17. public function getString()
  18. {
  19. return "{$this->class}:{$this->id}:{$this->field}";
  20. }
  21. }