1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\ManageBlock;
13
14 15 16
17 class SizeColumn extends Column
18 {
19 public function __construct(\Icybee\ManageBlock $manager, $id, array $options=array())
20 {
21 parent::__construct
22 (
23 $manager, $id, $options + array
24 (
25 'class' => 'measure',
26 'default_order' => -1,
27 'discreet' => true
28 )
29 );
30 }
31
32 public function render_cell($record)
33 {
34 $property = $this->id;
35
36 return \ICanBoogie\I18n\format_size($record->$property);
37 }
38 }