Index: branches/RC/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r10870 -r10902 --- branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 10870) +++ branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 10902) @@ -1416,12 +1416,43 @@ */ function UseItemIcons($params) { - $object =& $this->getObject($params); - $grids = $this->Application->getUnitOption($this->Prefix, 'Grids'); return array_key_exists('Icons', $grids[ $params['grid'] ]); } + /** + * Returns corresponding to grid layout selector column width + * + * @param Array $params + * @return int + */ + function GridSelectorColumnWidth($params) + { + $width = 0; + if ($params['selector']) { + $width += $params['selector_width']; + } + + if ($this->UseItemIcons($params)) { + $width += $params['icon_width']; + } + + return $width; + } + + /** + * Returns grids item selection mode (checkbox, radio, ) + * + * @param Array $params + * @return string + */ + function GridSelector($params) + { + $grids = $this->Application->getUnitOption($this->Prefix, 'Grids'); + + return array_key_exists('Selector', $grids[ $params['grid'] ]) ? $grids[ $params['grid'] ]['Selector'] : $params['default']; + } + function ItemIcon($params) { $object =& $this->getObject($params);