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

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

    return $instance;
  }

  public function is_valid_type($value)
  {
    
    return preg_match('/^([a-zA-Z])[a-zA-Z0-9_\\.]{0,29}$/', $value) == 1;
  }

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