CMS  Version 3.9
BindingTarget Class Reference

Inherits DataItem.

Public Member Functions

 getBoundItemIds ($item)
 

Public Attributes

 $table = "binding_target"
 
 $primary_key = "binding_target_id"
 
 $fields
 

Detailed Description

Definition at line 39 of file bindings.inc.

Member Function Documentation

◆ getBoundItemIds()

BindingTarget::getBoundItemIds (   $item)

Definition at line 49 of file bindings.inc.

50  {
51  $cl = get_class($item);
52 
53  if (!isset($this->_termCache[$cl]))
54  {
55  $this->_termCache[$cl] = IndexedQuery::create(BindingSummary, "WHERE target_class=:t and class=:c", "id")
56  ->bind(":t", $this->target_class,
57  ":c", get_class($item))
58  ->execute();
59  }
60 
61  return $this->_termCache[$cl][$item->get($item->getPrimaryKey())]->target_ids;
62  }

Member Data Documentation

◆ $fields

BindingTarget::$fields
Initial value:
= array("binding_target_id" => Number,
"target_class" => String,
"associated_classes" => String,
"enable_facet_filter" => Boolean)

Definition at line 44 of file bindings.inc.

◆ $primary_key

BindingTarget::$primary_key = "binding_target_id"

Definition at line 42 of file bindings.inc.

◆ $table

BindingTarget::$table = "binding_target"

Definition at line 41 of file bindings.inc.


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