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

class SelectQueryParams extends Parameters
{
  public static function getInstance()
  {
    static $instance = null;
    if (is_null($instance)) {
      $instance = new SelectQueryParams();
    }

    return $instance;
  }

  public function is_valid_type($value)
  {
    return $value instanceof SelectQueryBuilder;
  }

  public function prepare_value($value, $dboperation)
  {
    return $value->getSQLForInnerQuery();
  }
}