public function setMultipleOption($value, $dc)
	{
		$db = Database::getInstance();
		
		if ($value > 3 && $dc->activeRecord->maxLength > 200)
		{
			// change maxLegth in database
			$db->prepare("UPDATE " . $this->table . " SET maxLength=? WHERE id=?")
			   ->execute(200, $dc->activeRecord->id);
		}
		
		return $value;
	}
public function setMultipleOption($value, $dc)
	{
		$db = Database::getInstance();
		
		if ($value > 3 && $dc->activeRecord->maxLength > 200)
		{
			// change maxLegth in database
			$db->prepare("UPDATE " . $this->table . " SET maxLength=? WHERE id=?")
			   ->execute(200, $dc->activeRecord->id);
		}
		
		return $value;
	}
public function setMultipleOption ( $ value , $ dc ) { $ db = Database :: getInstance ( ) ; if ( $ value > 3 && $ dc -> activeRecord -> maxLength > 200 ) { // change maxLegth in database $ db -> prepare ( "UPDATE " . $ this -> table . " SET maxLength=? WHERE id=?" ) -> execute ( 200 , $ dc -> activeRecord -> id ) ; } return $ value ; }
Reduce the maxLength for 4 input fields

@param mixed         $value
@param DataContainer $dc

@return mixed
Reduce the maxLength for 4 input fields