mixed) $options The initial options to set. */ public function __construct( array $options = array() ) { $this->properties['lockTimeout'] = 900; $this->properties['backendLockTimeout'] = 10000000; $this->properties['backendLockWaitTime'] = 10000; parent::__construct( $options ); } /** * Sets an option. * This method is called when an option is set. * * @param string $propertyName The name of the option to set. * @param mixed $propertyValue The option value. * @ignore * * @throws ezcBasePropertyNotFoundException * if the given property does not exist. * @throws ezcBaseValueException * if the value to be assigned to a property is invalid. * @throws ezcBasePropertyPermissionException * if the property to be set is a read-only property. */ public function __set( $propertyName, $propertyValue ) { switch ( $propertyName ) { case 'lockTimeout': if ( !is_int( $propertyValue ) || $propertyValue < 1 ) { throw new ezcBaseValueException( $propertyName, $propertyValue, 'int > 0' ); } break; case 'backendLockTimeout': if ( !is_int( $propertyValue ) || $propertyValue < 1 ) { throw new ezcBaseValueException( $propertyName, $propertyValue, 'int > 0' ); } break; case 'backendLockWaitTime': if ( !is_int( $propertyValue ) || $propertyValue < 1 ) { throw new ezcBaseValueException( $propertyName, $propertyValue, 'int > 0' ); } break; default: throw new ezcBasePropertyNotFoundException( $propertyName ); } $this->properties[$propertyName] = $propertyValue; } } ?>