PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 2ms 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
 1<?php
 2class FormBinding
 3{
 4	private $class;
 5	private $id;
 6	private $field;
 7	
 8	function __construct($class, $id, $field)
 9	{
10		$this->class = $class;
11		$this->id = $id;
12		$this->field = $field;
13	}
14	
15	public function getName()
16	{
17		return "_zoop_form_element[{$this->class}][{$this->id}][{$this->field}]";
18	}
19	
20	public function getString()
21	{
22		return "{$this->class}:{$this->id}:{$this->field}";
23	}
24}