Exemple #1
0
 /**
  * Test text column sub-member
  */
 public function testTextColumnSubMember()
 {
     $SUT = new Grid_Column_Text();
     $SUT->field('author')->member('name');
     $author = array('name' => 'someName');
     $data = array('author' => (object) $author);
     $cell = $SUT->render($data);
     $this->assertEquals('someName', $cell);
 }
Exemple #2
0
 public function __construct(array $column = array())
 {
     parent::__construct($column);
     $this->_route_str = Arr::get($column, 'route_str');
 }