<?php

/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\Web\Classes\Api\SearchRestriction;


abstract class SearchRestriction
{
  
  protected $requestName;
  
  protected $sessionName;

  
  abstract public function applyRestriction($pFromObject, $pToObject);

  
  abstract public function getFilterValue();

  public function getRequestName()
  {
    return $this->requestName;
  }

  
  public function getSet()
  {
    return array();
  }

  
  public function reset()
  {
    \SessionOperations::setVarValueFilter($this->sessionName, '');
  }
}