PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/apps/learn/domain/Cell.php

http://zoop.googlecode.com/
PHP | 21 lines | 18 code | 3 blank | 0 comment | 0 complexity | f5c2c1db535e2e5b18c97a26cc951cf2 MD5 | raw file
 1<?php
 2class Cell
 3{
 4	private $letter;
 5	
 6	function setLetter($leter)
 7	{
 8		$this->letter = $leter;
 9	}
10	
11	function getLetter()
12	{
13		return $this->letter;
14	}
15	
16	public function draw($row, $col)
17	{
18		echo $this->letter ? '<textarea rows="1" cols="2" name="cell[' . $row . '][' . $col . ']">' . $this->letter . '</textarea>'
19				: '<textarea rows="1" cols="2" name="cell[' . $row . '][' . $col . ']"></textarea>';
20	}
21}