Chumper\Datatable\Table::getCallbacks PHP Метод

getCallbacks() публичный Метод

public getCallbacks ( ) : array
Результат array
    public function getCallbacks()
    {
        return $this->callbacks;
    }

Usage Example

Пример #1
0
 /**
  * @expectedException Exception
  */
 public function testSetCallbacks()
 {
     $this->table->setCallbacks('foo', 'bar');
     $this->assertArrayHasKey('foo', $this->table->getCallbacks());
     $this->table->setCallbacks(array('foo2' => 'bar2', 'foo3' => 'bar3'));
     $this->assertArrayHasKey('foo2', $this->table->getCallbacks());
     $this->assertArrayHasKey('foo3', $this->table->getCallbacks());
     $this->table->setCallbacks('foo', 'bar', 'baz');
     $this->assertTrue(False);
     // should throw exception before here
 }