コード例 #1
0
ファイル: EventTest.php プロジェクト: taproot/librarian
 /**
  * @covers Taproot\Librarian\Event::getLibrarian
  * @todo   Implement testGetLibrarian().
  */
 public function testGetLibrarian()
 {
     $this->assertSame($this->l, $this->object->getLibrarian());
 }
コード例 #2
0
ファイル: AbstractIndex.php プロジェクト: taproot/librarian
 public function onDelete(Event $event)
 {
     $id = $event->getData();
     $this->db->delete($this->getTableName(), ['id' => $id]);
 }