ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilBiblFieldFilterFactory Class Reference

Class ilBiblFieldFilterFactory. More...

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

Public Member Functions

 findById ($id)
 
 findByFieldId ($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 
)

Implements ilBiblFieldFilterFactoryInterface.

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

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

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  }
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ findByFieldId()

ilBiblFieldFilterFactory::findByFieldId (   $id)

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

References $id, and ActiveRecord\where().

24  {
25  return ilBiblFieldFilter::where([ 'field_id' => $id ])->first();
26  }
if(!array_key_exists('StateId', $_REQUEST)) $id
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ findById()

ilBiblFieldFilterFactory::findById (   $id)

Implements ilBiblFieldFilterFactoryInterface.

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

References $id, and ActiveRecord\findOrFail().

15  {
17  }
if(!array_key_exists('StateId', $_REQUEST)) $id
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...
+ Here is the call graph for this function:

◆ getAllForObjectId()

ilBiblFieldFilterFactory::getAllForObjectId (   $obj_id)

Implements ilBiblFieldFilterFactoryInterface.

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

References ActiveRecord\where().

33  {
34  return ilBiblFieldFilter::where([ 'object_id' => $obj_id ])->get();
35  }
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ getByObjectIdAndField()

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

Implements ilBiblFieldFilterFactoryInterface.

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

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

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  return $list;
64  }
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
static where($where, $operator=null)
+ Here is the call graph for this function:

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