25###  ToolConsumer methods 
   42        $query = $this->db->prepare($sql);
 
   43        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
   50        $query = $this->db->prepare($sql);
 
   51        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
   59        $query = $this->db->prepare($sql);
 
   60        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
   67        $query = $this->db->prepare($sql);
 
   68        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
   76        $query = $this->db->prepare($sql);
 
   77        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
   82               'SET primary_resource_link_pk = NULL, share_approved = NULL ' .
 
   85        $query = $this->db->prepare($sql);
 
   86        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
   91               'SET primary_resource_link_pk = NULL, share_approved = NULL ' .
 
   95        $query = $this->db->prepare($sql);
 
   96        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  101               'WHERE consumer_pk = :id';
 
  102        $query = $this->db->prepare($sql);
 
  103        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  110        $query = $this->db->prepare($sql);
 
  111        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  116               'WHERE consumer_pk = :id';
 
  117        $query = $this->db->prepare($sql);
 
  118        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  123               'WHERE consumer_pk = :id';
 
  124        $query = $this->db->prepare($sql);
 
  125        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  150        $id = $context->getRecordId();
 
  156        $query = $this->db->prepare($sql);
 
  157        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  164        $query = $this->db->prepare($sql);
 
  165        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  170               'SET primary_resource_link_pk = null, share_approved = null ' .
 
  173        $query = $this->db->prepare($sql);
 
  174        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  179               'WHERE context_pk = :id';
 
  180        $query = $this->db->prepare($sql);
 
  181        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  186               'WHERE context_pk = :id';
 
  187        $query = $this->db->prepare($sql);
 
  188        $query->bindValue(
'id', 
$id, PDO::PARAM_INT);
 
  192            $context->initialize();
 
An exception for terminatinating execution or to throw for unit testing.
Class to represent a tool consumer context.
if(!array_key_exists('StateId', $_REQUEST)) $id