baseline
[omp.pkp.sfu.ca.git] / lib / pkp / classes / ui / grid / GridCell.inc.php
blob1a3b15de6ff583b3a5c3e4985b96db2ed2433bbe
1 <?php
4 /**
5 * @file classes/ui/grid/GridCell.inc.php
7 * Copyright (c) 2000-2009 John Willinsky
8 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
10 * @class GridCell
11 * @ingroup core
13 * @brief Class defining basic operations for handling HTML grids.
16 class GridCell {
17 /** Internal identifier for a given cell. To be used as a programmatic reference. */
18 var $id;
20 var $action;
22 /** Reference to the row object to which this cell belongs **/
23 var $row;
25 var $content;
26 /**
27 * Constructor.
28 * @param id of int
30 function GridCell($id = null) {
31 $this->id = $id;
34 function setId($id) {
35 $this->id = $id;
38 function getId() {
39 return $this->id;
42 function getRow() {
43 return $this->row;
46 function setRow(&$row) {
47 $this->row =& $row;
50 function setContents($content) {
51 $this->content = $content;
54 function getContents() {
55 return $this->content;
58 function getGridCellActions() {