/** * the constructor * * allowed numberableConfiguration: * - stepsize (optional) * - shardkey (optional) * - zerofill (optional) * - prefix (optional) * * * allowed options: * see parent class * * @param array $_numberableConfiguration * @param Zend_Db_Adapter_Abstract $_db (optional) * @param array $_options (optional) * @throws Tinebase_Exception_Backend_Database */ public function __construct($_numberableConfiguration, $_dbAdapter = NULL, $_options = array()) { parent::__construct($_numberableConfiguration, $_dbAdapter, $_options); if (isset($_numberableConfiguration[self::CONF_PREFIX])) { $this->_prefix = $_numberableConfiguration[self::CONF_PREFIX]; } if (isset($_numberableConfiguration[self::CONF_ZEROFILL])) { if (!is_int($_numberableConfiguration[self::CONF_ZEROFILL])) { throw new Tinebase_Exception_UnexpectedValue('found improper "' . self::CONF_ZEROFILL . '" configuration: (not a int) "' . $_numberableConfiguration[self::CONF_ZEROFILL] . '"'); } $this->_zerofill = $_numberableConfiguration[self::CONF_ZEROFILL]; } }