Esempio n. 1
0
 public function testTotalColumn()
 {
     $column = new Total($this->table, 'test');
     $column->setData(['test' => 5]);
     $this->assertEquals(5, $column->getValue());
     $this->assertEquals("5", $column->getFooter());
 }
Esempio n. 2
0
 public function addTotalColumn($columnName)
 {
     if (is_scalar($columnName)) {
         $column = new Total($this, $columnName);
     }
     if (is_array($columnName)) {
         $column = new Total($this, $columnName);
     }
     $this->columns[] = $column;
     $this->addJavascript($column->getJavascript(), $column->getName());
     return $this;
 }