1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103:
<?php
/**
* icms_ipf_Object Table Listing
*
* Contains the classes responsible for displaying a highly configurable and features rich listing of IcmseristableObject objects
*
* @copyright The ImpressCMS Project http://www.impresscms.org/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @category ICMS
* @package Ipf
* @subpackage View
* @since 1.1
* @author marcan <marcan@impresscms.org>
* @version SVN: $Id: Column.php 10326 2010-07-11 18:54:25Z malanciault $
*/
defined('ICMS_ROOT_PATH') or die('ImpressCMS root path not defined');
/**
* icms_ipf_view_Column class
*
* @copyright The ImpressCMS Project http://www.impresscms.org/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @category ICMS
* @package Ipf
* @subpackage View
* @since 1.1
* @author marcan <marcan@impresscms.org>
*/
class icms_ipf_view_Column {
public $_keyname;
public $_align;
public $_width;
public $_customMethodForValue;
public $_extraParams;
public $_sortable;
public $_customCaption;
/**
* Constructor
*
* @param unknown_type $keyname
* @param str $align
* @param unknown_type $width
* @param unknown_type $customMethodForValue
* @param unknown_type $param
* @param unknown_type $customCaption
* @param unknown_type $sortable
*/
public function __construct($keyname, $align = _GLOBAL_LEFT, $width = false, $customMethodForValue = false, $param = false, $customCaption = false, $sortable = true) {
$this->_keyname = $keyname;
$this->_align = $align;
$this->_width = $width;
$this->_customMethodForValue = $customMethodForValue;
$this->_sortable = $sortable;
$this->_param = $param;
$this->_customCaption = $customCaption;
}
/**
* Accessor for keyname
*/
public function getKeyName() {
return $this->_keyname;
}
/**
* Accessor for align
*/
public function getAlign() {
return $this->_align;
}
/**
* Accessor
*/
public function isSortable() {
return $this->_sortable;
}
/**
* Accessor for width
*/
public function getWidth() {
if ($this->_width) {
$ret = $this->_width;
} else {
$ret = '';
}
return $ret;
}
/**
* Accessor for custom caption
*/
public function getCustomCaption() {
return $this->_customCaption;
}
}