ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilBiblFieldFilterFactory Class Reference

Class ilBiblFieldFilterFactory. More...

+ Inheritance diagram for ilBiblFieldFilterFactory:
+ Collaboration diagram for ilBiblFieldFilterFactory:

Public Member Functions

 findById ($id)
 @inheritDoc More...
 
 findByFieldId ($id)
 @inheritDoc More...
 
 getAllForObjectId ($obj_id)
 @inheritDoc More...
 
 filterItemsForTable ($obj_id, ilBiblTableQueryInfoInterface $info)
 @inheritDoc More...
 
 getByObjectIdAndField (ilBiblFieldInterface $field, $object_id)
 @inheritDoc More...
 
 findById ($id)
 
 getAllForObjectId ($obj_id)
 
 filterItemsForTable ($obj_id, ilBiblTableQueryInfoInterface $info)
 
 getByObjectIdAndField (ilBiblFieldInterface $field, $object_id)
 

Detailed Description

Member Function Documentation

◆ filterItemsForTable()

ilBiblFieldFilterFactory::filterItemsForTable (   $obj_id,
ilBiblTableQueryInfoInterface  $info 
)

@inheritDoc

Implements ilBiblFieldFilterFactoryInterface.

Definition at line 41 of file class.ilBiblFieldFilterFactory.php.

42 {
43 $list = ilBiblFieldFilter::where(['object_id' => $obj_id])
44 ->limit($info->getOffset(), $info->getLimit())
45 ->orderBy($info->getSortingColumn(), $info->getSortingDirection());
46
47 return $list->getArray();
48 }
static where($where, $operator=null)

References ilBiblTableQueryInfoInterface\getLimit(), ilBiblTableQueryInfoInterface\getOffset(), ilBiblTableQueryInfoInterface\getSortingColumn(), ilBiblTableQueryInfoInterface\getSortingDirection(), and ActiveRecord\where().

+ Here is the call graph for this function:

◆ findByFieldId()

ilBiblFieldFilterFactory::findByFieldId (   $id)

@inheritDoc

Definition at line 23 of file class.ilBiblFieldFilterFactory.php.

24 {
25 return ilBiblFieldFilter::where(['field_id' => $id])->first();
26 }

References ActiveRecord\where().

+ Here is the call graph for this function:

◆ findById()

ilBiblFieldFilterFactory::findById (   $id)

@inheritDoc

Implements ilBiblFieldFilterFactoryInterface.

Definition at line 14 of file class.ilBiblFieldFilterFactory.php.

15 {
17 }
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.

References ActiveRecord\findOrFail().

+ Here is the call graph for this function:

◆ getAllForObjectId()

ilBiblFieldFilterFactory::getAllForObjectId (   $obj_id)

@inheritDoc

Implements ilBiblFieldFilterFactoryInterface.

Definition at line 32 of file class.ilBiblFieldFilterFactory.php.

33 {
34 return ilBiblFieldFilter::where(['object_id' => $obj_id])->get();
35 }

References ActiveRecord\where().

+ Here is the call graph for this function:

◆ getByObjectIdAndField()

ilBiblFieldFilterFactory::getByObjectIdAndField ( ilBiblFieldInterface  $field,
  $object_id 
)

@inheritDoc

Implements ilBiblFieldFilterFactoryInterface.

Definition at line 54 of file class.ilBiblFieldFilterFactory.php.

55 {
57 'object_id' => $object_id,
58 'field_id' => $field->getId(),
59 ])->first();
60 if (!$list) {
61 throw new LogicException("filter not found");
62 }
63
64 return $list;
65 }

References ilBiblFieldInterface\getId(), and ActiveRecord\where().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: