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

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

    return $instance;
  }

  public function is_valid_type($value)
  {
    return CleanOperations::isInt($value);
  }

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