ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilBiblLibraryFactory.php
Go to the documentation of this file.
1<?php
2
9{
10
14 public function getAll()
15 {
16 return ilBiblLibrary::get();
17 }
18
19
23 public function findById($id)
24 {
25 return ilBiblLibrary::findOrFail($id);
26 }
27
28
32 public function getEmptyInstance()
33 {
34 return new ilBiblLibrary();
35 }
36}
static findOrFail($primary_key, array $add_constructor_args=array())
Tries to find the object and throws an Exception if object is not found, instead of returning null.
An exception for terminatinating execution or to throw for unit testing.
Class ilBiblLibraryFactory.
Class ilBiblLibrary.
Interface ilBiblLibraryFactoryInterface.